Developer Tools

Markdown Previewer

Write Markdown and see it formatted instantly, with clean HTML to copy and nothing ever run or uploaded.

By Nitin Raturi · Last reviewed

Input

How to use the Markdown Previewer

Write Markdown and see it formatted at once, safely in your browser.

  1. Type or paste Markdown.
  2. Read the live preview.
  3. Switch to HTML to copy the generated code.
  4. Check the word count and reading time.

Good to know

  • Links that could run code, such as javascript:, are removed.
  • Tap the ⓘ next to any field for a short guide to it.

CommonMark basics plus tables and strikethrough. Pasted HTML is shown as text, never run.

Runs in your browser. Nothing you type is uploaded or saved in the link.

Markdown

Text with simple marks for formatting: # for headings, **bold**, *italic*, - for lists, and more.

How to fill it in

  • Type or paste Markdown; the preview updates as you type.
  • Supported: headings, bold, italic, strikethrough, code, links, lists, quotes, tables and lines.

Example

The sample has 31 words, 1 heading and 1 link.

Keep in mind: Raw HTML is shown as text for safety: <script> becomes <p>&lt;script&gt;alert(1)&lt;/script&gt;</p>.

Show

The formatted preview, or the HTML it would produce.

How to fill it in

  • Choose Preview to read it, or HTML to copy the code.

Result

Words
31
Headings
1
Links
1
Reading time
about 1 min

Trip budget

Plan for 3 days in Rishikesh. Details on the guide.

  • Train: ₹1,200
  • Stay: ₹4,500
    • two nights
ItemCost
Food₹2,000

Book early in May.

total = 7700

How this calculator works

  1. Step 1Find the blocksLinesHeadings, lists, quotes, code and tables, line by line.
  2. Step 2Format the textInline marksBold, italic, code and links inside each block.
  3. Step 3Build it safelyNo raw HTMLEverything you type is shown as text, never run.

Markdown is a plain-text way to write formatted documents. It is used in README files, GitHub, chat apps and many note tools.

Worked example: one line of Markdown

Each mark becomes one HTML element.

Converting a short line
Markdown
Plan for **3 days** in *Rishikesh*.
  1. **3 days**<strong>3 days</strong>
  2. *Rishikesh*<em>Rishikesh</em>
  3. A blank line ends the paragraph<p> … </p>
  4. HTML<p>Plan for <strong>3 days</strong> in <em>Rishikesh</em>.</p>

Reading the result

  • PreviewHow it readsFormatted as it would appear in a document.
  • HTMLCopy the codeClean HTML with every text value escaped.
  • No scripts<script> shows as text: <p>&lt;script&gt;alert(1)&lt;/script&gt;</p>
  • Safe links onlyhttp, https, mailto and page links; javascript: is removed.
  • No remote imagesImages are not loaded, so nothing tracks you.
  • Stays localYour text is never uploaded or stored.

Markdown is plain text with light formatting. Counting and tidying text are related jobs.

To check length and reading time, use the word counter. The case converter changes headings to title case, and the slug generator makes a URL from a title.

Common mistakes

  • Mistake: Starting a list right after a paragraph line.

    Instead: Leave a blank line before the list in most editors.

  • Mistake: Indenting nested list items by one space.

    Instead: Indent by two or more spaces under the parent item.

  • Mistake: Expecting raw HTML to render.

    Instead: Use Markdown syntax; many sites strip HTML too.

Read how we test our calculators, or browse more developer tools.

Frequently asked questions

Which Markdown does this support?

The common core from the CommonMark specification (headings, emphasis, code, links, lists, quotes) plus GitHub-style tables and strikethrough.

Why is my HTML shown as text?

For safety. Raw HTML can carry scripts, so the previewer always shows it as plain text instead of running it.

Why are images not shown?

Loading an image from another site would tell that site you opened the page. The previewer shows the image text instead.

Is my text uploaded?

No. Everything happens in your browser and nothing is saved in the link.

Can I copy the HTML?

Yes. Choose “HTML code” under Show and press Copy. Every text value in it is escaped.

Sources and methodology

The formulas are standard time-value-of-money results. We check every figure against golden values worked out independently, by closed form and by month-by-month simulation; see the methodology.

Written and maintained by Nitin Raturi, a software engineer (about the author). Last reviewed 27 Oct 2026; next review due by . Found an error? Tell us.

Changelog

  • : Initial release. Demand metrics remain unverified.