Markdown ↔ HTML Converter
Converti Markdown in HTML e viceversa. Preview live del risultato, download file e supporto per elementi comuni come tabelle, codice e liste.
Markdown
HTML
Come utilizzare Convertitore Markdown
Choose Conversion Direction
Use the top buttons to select "Markdown → HTML" (to convert Markdown text to HTML code) or "HTML → Markdown" (to convert HTML to simplified Markdown syntax).
Write or paste content
Enter or paste your Markdown or HTML text into the left editor. Real-time conversion occurs: the result appears immediately in the right editor.
Watch preview
In Markdown → HTML mode, scroll down to see the "Preview" section that shows the visual rendering of the generated HTML, exactly as it would appear in a browser.
Copy or download result
Use the "Copy" button in the right editor to copy converted code into notes. Use arrow buttons to download inputs or outputs as .md or .html files.
Use the example to explore
Click "Example" to load a demonstration document with titles, lists, tables, code and citations. Great for seeing all supported syntax in action.
Suggerimenti
- Use two consecutive blank lines to separate distinct paragraphs; a single blank line is often ignored.
- For multi-line code blocks, specify the language after three backticks (e.g. `typescript`) to generate HTML with a CSS class for syntax highlighting.
- In HTML to Markdown, only paste the content of the body: HTML tags, head and script will be removed but may generate noise in output.
Domande frequenti
What Markdown elements are supported by the converter?
The converter supports all common Markdown elements: headings from H1 to H6, paragraphs, bold (**), italic (*), strikethrough (~~), links ([text](url)), images (), bulleted and numbered lists, blockquotes (>), horizontal rules (---), inline code (`) and code blocks (```), as well as tables with the |---| separator row.
Can I use this tool to convert HTML to Markdown?
Yes, select the "HTML → Markdown" mode. The tool analyzes structural HTML tags (h1-h6, p, ul, ol, li, strong, em, a, img, blockquote, pre, code, hr) and converts them to equivalent Markdown syntax, removing all other tags.
How do I create a table in Markdown?
Create a row with columns separated by |, then add a separator line with |---|---| and finally the data rows. Example: | Name | Age |\n|------|-----|\n| Mario | 30 |. You can use the included example file to see the correct syntax.
Does syntax highlighting work for code blocks?
Il convertitore riconosce i blocchi di codice Markdown con specificazione del linguaggio (es. ```javascript) e genera l'attributo class="language-javascript" nel tag <code> HTML. L'evidenziazione visiva della sintassi dipende dall'aggiunta di una libreria come Prism.js nella pagina di destinazione.
Can I download the converted file?
Yes, use the buttons with the downward arrow icon above each editor to download content as files. The input is saved with its original extension (.md or .html), and the output is saved with a converted extension (.html or .md).