Code & Markup tools
Format SQL and XML, encode HTML, convert HTML and Markdown, and minify HTML, CSS, and JS.
Minify CSS by removing comments, collapsing whitespace, and dropping trailing semicolons — strings and url() values preserved.
Escape &, <, >, quotes, and non-ASCII characters as HTML entities, or decode named and numeric entities back to text.
Shrink HTML by collapsing whitespace and stripping comments, while leaving pre, textarea, script, and style content untouched.
Convert HTML to clean Markdown with GitHub-flavored tables, task lists, and code blocks — or paste copied web or Google Docs content directly.
Remove comments and insignificant whitespace from JavaScript with a tokenizer that respects strings, template literals, and regex.
Convert Markdown to HTML with GitHub-flavored tables and task lists, heading ids, pretty-printed or minified output, and a sanitized live preview.
Format messy SQL into readable, indented queries — or minify it back down.
Indent XML for reading or minify it for transport, with unbalanced tags reported by line number.
About Code & Markup tools
Eight tools for tidying markup and code. The SQL formatter turns a single-line query into readable, indented SQL — or minifies it back down — with dialect support for Postgres, MySQL, SQLite, and BigQuery. The XML formatter indents documents for reading or strips them for transport, and reports unbalanced tags by line number. The HTML entity encoder escapes ampersands, angle brackets, quotes, and non-ASCII characters, and decodes named or numeric entities back to text. Two converters move content between HTML and Markdown: one turns HTML — or a copied web page or Google Doc — into clean GitHub-flavored Markdown, the other renders Markdown to copyable HTML with heading anchors and a sanitized preview.
The three minifiers are deliberately conservative: the HTML minifier collapses whitespace and strips comments while leaving pre, textarea, script, and style content untouched; the CSS minifier preserves strings and url() values; and the JavaScript minifier uses a real tokenizer so strings, template literals, and regular expressions survive intact. They're built for quick jobs — an email template, an inline snippet, a legacy file without a build step — not as a replacement for your bundler.
Formatting and minification run entirely in your browser, so proprietary queries and source code never leave your machine.