TextArray
100% local

Markdown to HTML and back

Convert Markdown to clean HTML source and turn HTML back into Markdown.

Input
Output

Markdown to HTML and back

Markdown is quick to write, but the web runs on HTML, and sooner or later you need one turned into the other. Paste Markdown and get the HTML source out; flip the direction and paste HTML to get tidy Markdown back. The output is plain source you can copy into a template, a CMS field, an email or a static-site page — not a rendered preview, so what you see is exactly what you paste.

Both directions cover the syntax people actually use: headings, bold and italic, links and images, ordered and unordered lists, blockquotes, horizontal rules, fenced code blocks and inline code. The GitHub-flavoured extras are here too — tables, strikethrough and task lists with their checkboxes. Text is escaped as it should be, so a stray less-than sign, ampersand or greater-than in your content becomes <, & and > instead of breaking the markup or vanishing.

The line-break option decides how single newlines are read. Leave it off and Markdown's usual rule applies: a single break inside a paragraph is just a space, and only a blank line starts a new paragraph. Turn it on when your text uses one line per thought and you want each of those to become a real line break, the way many chat and note apps behave.

Everything runs locally in your browser. Nothing you paste is uploaded, which matters when the Markdown is a draft, release notes or internal documentation. The tally under the output counts the elements produced alongside the character change, so you can see at a glance how much structure the conversion found.

FAQ

Does this show a rendered preview of the HTML?
No. The output is the HTML source as plain text, ready to copy into a template or CMS. To see it rendered, paste that source into a page or an editor that displays HTML.
Which Markdown features are supported?
Headings, bold, italic, links, images, ordered and unordered lists, blockquotes, horizontal rules, fenced and inline code, plus the GitHub extras: tables, strikethrough and task lists. Special characters in text are escaped to <, & and >.
What does the single line breaks option do?
With it off, a single newline inside a paragraph is treated as a space and only a blank line starts a new paragraph, which is standard Markdown. With it on, each single newline becomes a <br>, matching apps that break on every line.
Can I convert HTML back into Markdown?
Yes. Switch the direction to HTML to Markdown and paste your HTML. Common tags map back to their Markdown form; anything without a Markdown equivalent is kept or dropped so the result stays readable.
Is my text uploaded anywhere?
No. The conversion runs entirely in your browser and your text never leaves your device.