Format & Beautify tools
Re-indent and validate JSON, XML, YAML, SQL, HTML, CSS, and JavaScript.
-
Format and validate JSON online
Paste JSON to pretty-print, minify, and validate it instantly in your browser.
-
Format and beautify XML online
Pretty-print or minify XML instantly in your browser, with adjustable indentation.
-
Format and re-indent YAML online
Normalize inconsistent YAML indentation to a consistent width instantly in your browser.
-
Format and beautify SQL online
Pretty-print or minify a SQL query instantly in your browser, with clause-based line breaks.
-
Format and beautify HTML online
Pretty-print or minify HTML instantly in your browser, with adjustable indentation.
-
Format and minify CSS online
Pretty-print or minify CSS instantly in your browser, with adjustable indentation.
-
Format and minify JavaScript online
Pretty-print or minify JavaScript instantly in your browser, correctly handling strings, template literals, regex, and comments.
About Format & Beautify tools
These do two jobs at once. Formatting makes a minified or badly indented blob readable, which is usually how you end up here — an API response pasted from a log, a config file someone hand-edited. Validating tells you where the structure actually breaks, and a parser pointing at line 47 beats reading the whole thing looking for a missing brace.
JSON and YAML get strict parsing, so a trailing comma or an inconsistent indent surfaces immediately rather than at deploy time. CSS and JavaScript go both ways: expand for reading, minify for shipping. Everything runs locally in the page, which matters when the thing you are pasting is a production config or a response containing customer data.