Advertisement
Text Formatting
Format and minify Markdown, HTML, JSON, XML, CSS, and JavaScript 13 different ways.
Your code
Result
Advertisement
Markdown & HTML
- Markdown Formatter — Tidy up heading spacing, list markers, and blank lines.
- Markdown to HTML — Convert headings, bold, italics, links, and lists into HTML.
- HTML to Markdown — Convert common HTML tags back into Markdown syntax.
- HTML Formatter — Indent HTML by nesting depth, one tag per line.
- HTML Minifier — Strip comments and whitespace between tags.
Data formats
- JSON Formatter — Pretty-print JSON with 2-space indentation.
- JSON Minifier — Compact JSON down to a single line.
- XML Formatter — Indent XML by nesting depth, one tag per line.
- XML Minifier — Strip whitespace between tags.
Stylesheets & scripts
- CSS Formatter — One declaration per line, indented by rule nesting.
- CSS Minifier — Strip comments and unnecessary whitespace.
- JavaScript Formatter — A lightweight, brace-aware re-indenter — not a full code-style engine, but a quick structural cleanup.
- JavaScript Minifier — Strips comments and collapses whitespace, without touching strings, template literals, or regular expressions.
How it works
Paste your code, pick a format, and copy the result — nothing leaves your browser.
Advertisement