Markdown Toolkit
Render Markdown to HTML or extract a table of contents from headings.
What is Markdown Toolkit
This Markdown toolkit converts Markdown into standard HTML, and can also extract headings into a table of contents. Headings inside code blocks are never mistaken for real headings. Built on the marked library; all processing runs locally in your browser.
🔒 Everything runs in your browser. Nothing is uploaded.
What this tool actually does with your file
- Where it runs
- In your browser, on this page
- Upload
- None — the file never leaves your device
- Offline
- Works with the network disconnected
CommonMark first, extensions second
The baseline is CommonMark: headings, emphasis, links, lists, block quotes, fenced code, indented code. Everything beyond that — tables, strikethrough, task lists, autolinks — is a GitHub-flavoured extension and is only rendered if the implementation enables it.
This is why the same source renders differently on two sites. A table that shows correctly on GitHub can appear as a paragraph of pipes in a strict CommonMark renderer. When publishing somewhere unfamiliar, check the table and footnote syntax first; those are the two extensions most often missing.
Whitespace is syntax, so formatting can break meaning
Two trailing spaces mean a hard line break; four leading spaces mean a code block; a blank line inside a list item changes whether the following paragraph belongs to the item. A formatter that trims trailing whitespace silently removes every hard break in the document.
Nested list indentation is the other fragile area: two spaces, four spaces or a tab each produce different structures in different parsers. Normalising to a single convention is only safe if the target renderer agrees with it — otherwise the outline depth changes.
Embedded HTML and escaping
Most renderers pass raw HTML through, so a stray < in prose — 'x < y' — can start a tag and swallow the rest of the line. Escaping it as < is the fix, and it is the most common cause of a paragraph disappearing from rendered output.
Escaping also affects characters that are syntax only in context: an asterisk in the middle of a word, an underscore inside an identifier, a leading # in a shell snippet. Fenced code blocks avoid all of it, which is the reason to fence anything that looks like code rather than indenting it.
How to use
- 1.Paste your Markdown
- 2.Pick a mode (render / TOC)
- 3.Run and copy the result
How this compares
There are three ways to do this conversion: in the browser (this page), through a server-side converter, or with a desktop app. The useful difference is not speed — it is where your file goes and how far the free tier actually reaches.
| Aspect | This tool | Upload-based converters | Desktop software |
|---|---|---|---|
| Where the file is processed | In your browser, on this page | On the vendor's servers, after an upload | On your own machine, after installing an app |
| Account required | No | Usually — free tiers ask you to sign in before lifting a limit | No, though a licence may be needed |
| Size you can process for free | No size cap, no run limit | A few files per hour, or a ~5–10 MB cap before a paywall | Whatever your disk and RAM allow |
| Price | Free. Pro is $9/month, and only buys larger files and AI features | Usually a subscription — roughly $7–15/month as of November 2026 | A one-off licence, or a subscription |
| Works offline | Yes, once the page has loaded | No | Yes |
| Time before work starts on a 20 MB file | Immediate — there is nothing to upload | Dominated by the upload — about 16 s on a 10 Mbps uplink | Just the app launch |
| What it cannot preserve | Invalid input returns the parser error position instead of a repaired file | The same — the conversion is the same maths | The same, though some desktop apps re-render styles more faithfully |
Server-side converters are genuinely better at some things: very large files, sharing results with a team, keeping a conversion history, and automating batches from a script. For the case in front of you — one file, one format change, right now — they mostly add an upload wait and a sign-up form.
Frequently asked questions
Which Markdown syntax is supported?
CommonMark standard — headings, lists, tables, code blocks, links and more.
Why use the TOC mode?
It shows the heading structure at a glance and never picks up '#' lines inside code fences.
What this kind of conversion cannot keep
Formatters parse the input into a tree and print it back with consistent indentation. If the input is invalid, you get the parser's error position instead of a silently mangled file — malformed JSON stays malformed rather than being «repaired» into something that is no longer yours.
More in Format
On this page
- What is Markdown Toolkit
- What it does with your file
- How it actually behaves
- How to use it
- How this compares
- FAQ
Excel formula reference
29 functions with syntax, arguments and a table you can retype.
Browse the list →