Code Formatters and Minifiers: JSON, HTML, CSS and SQL
Formatters add consistent indentation and line breaks so code is easy to read and review. Minifiers do the opposite, removing spaces and comments to make files smaller.
Paste your code and copy the result. Formatting does not change how the code behaves.
JSON Formatter & ValidatorPretty-print, minify and validate JSON with clear error messages.HTML MinifierShrink HTML by removing comments and extra whitespace, with the size saved shown.CSS FormatterBeautify CSS with tidy indentation, one declaration per line and your choice of style.JavaScript FormatterBeautify JavaScript with consistent indentation, spacing and line breaks.Markdown PreviewerWrite Markdown and see a live preview, then copy the matching HTML.JSON Key SorterSort the keys of a JSON object alphabetically, naturally or ignoring case, at every level, without changing any values.SQL FormatterTidy SQL queries with clean indents, line breaks and keyword case.CSS Minifier & BeautifierShrink CSS for faster pages, or spread it out so it is easy to read.JavaScript MinifierStrip comments and spaces from JavaScript and see the size saved.HTML Formatter & MinifierIndent messy HTML for reading, or compact it to cut page weight.XML Formatter & ValidatorPretty print or minify XML and check it is well formed.
No tool matches that. Try a shorter word.