JSON Minifier
Minify JSON by removing all unnecessary whitespace and line breaks. The input is validated first, so the output is always valid JSON.
Frequently asked questions
Related tools
JSON Formatter & Validator
Pretty-print, validate and sort JSON, with the exact line and column of any syntax error.
HTML Formatter
Beautify messy or minified HTML with consistent indentation, powered by Prettier.
HTML Minifier
Remove comments and collapse whitespace in HTML while keeping <pre>, <textarea>, scripts and styles intact.
CSS Formatter
Beautify CSS, SCSS and Less with one rule per line and consistent indentation.