Code Formatters, Minifiers and Beautifiers

Tools / Dev Tools / Formatters
CSS Minifier Compress CSS by stripping comments and whitespace, or expand it back with clean indentation. Keeps calc() spacing, strings and license comments intact.
HTML Formatter Indent messy HTML so you can read it, or strip it down so it ships smaller. Works on fragments too, and never rewrites your markup into something else.
JavaScript Minifier Shrink JavaScript with Terser, the engine build tools use. It parses your code instead of guessing at it, so behaviour survives. Nothing is uploaded.
JSON Formatter Format, minify and validate JSON in your browser. Broken input is pinpointed by line and column, and a collapsible tree shows the structure.
Markdown Editor Write Markdown and see the rendered result side by side. Headings, lists, tables, code blocks and links are supported; copy the HTML or download .md and .html files. Runs in your browser.
SQL Formatter Break a long query onto readable lines, or squeeze it back onto one. Keeps your keyword casing, your quoted names and your strings exactly as written.
XML Formatter Indent messy XML so you can read it, or strip it down so it ships smaller. Handles RSS, CDATA and namespaces, and never rewrites your document.
YAML Formatter Reindent messy YAML, check it for errors with the line number, and read it back as JSON. Keeps your comments, block scalars and anchors. Runs in your browser.