Code formatters
Free code formatters that run in your browser: beautify or minify SQL, HTML, CSS and JavaScript, and turn Markdown into HTML with a live preview. Your code is never uploaded.
All Code formatters
SQL Formatter
Indents queries clause by clause for ten SQL dialects, or packs them onto one line.
Open toolHTML Formatter
Indents nested markup cleanly, or strips comments and whitespace for production.
Open toolCSS Formatter
One declaration per line when you are reading it, one line when you are shipping it.
Open toolJavaScript Formatter
Untangles minified scripts, or minifies with Terser so the code still behaves the same.
Open toolMarkdown to HTML
GitHub-flavoured Markdown to clean HTML, with the rendered page right next to it.
Open tool