Markdown formatter and preview
Paste Markdown to tidy it the way Prettier does, then read it rendered. Switch between the preview and the formatted source at any time.
What it does
- Formatting by Prettier, the formatter most projects use
- Compare two versions of a document side by side, with the differences highlighted
- Rendered preview with GitHub-style tables, task lists and strikethrough
- Mermaid diagrams in ```mermaid code blocks are drawn in the preview, as on GitHub
- Raw HTML in the Markdown isn't rendered, and remote images load only when you click
- Copy the formatted source or download it as a .md file
Questions
- Why didn't a remote image show in the preview?
- Loading an image from another site tells that site someone opened your document, so remote images wait for a click. Images embedded as data: URLs show straight away.
- What does formatting change?
- Spacing and style only, the way Prettier does: for example, list markers become -, and blank lines and indentation become consistent. The text itself is unchanged.
Other formatters
A private formatter for the formats you paste every day
Paste JSON, YAML, Mermaid, XML, SQL and Markdown on the left and get it tidied on the right as you type. Errors name the line and column. It formats and checks; it never converts one format into another.
What it does
- Several formats in one place. Each has its own page and its own remembered settings.
- Clear errors. They point at the line and highlight it in the input.
- Copy or download. Downloads use the right file type for each format.
- Smooth on big pastes. Formatting runs in a background worker, so typing stays responsive. Mermaid diagrams are drawn on the page itself.
- Extras where they help. Zoom and pan for Mermaid diagrams, a rendered preview for Markdown, and a dialect picker for SQL.
Questions
Is my data sent to a server?+–
No. Formatting runs in your browser, on your own device. What you paste is kept in memory only: it is never uploaded or saved.
Can it convert JSON to YAML, or other formats?+–
No, on purpose. Each page formats one format and keeps it that format.
What happens with invalid input?+–
You get an error with the line and column instead of a half-formatted result. JSON is checked strictly, so comments and trailing commas are reported.
Is anything remembered between visits?+–
Your settings (like the SQL dialect) and how you arranged the panes are remembered in your browser. The text you paste is not.