JSON Formatter
Uses the browser's native JSON API to format and minify, with optional key sorting and custom indentation. Everything runs locally.
Formatters and minifiers paired by language: HTML, CSS, JS, JSON, SQL, XML and YAML each have a version that indents and one that strips whitespace and comments. JSON adds recursive key sorting for diffing two payloads whose fields came back in a different order. Invalid input reports the error position instead of silently emitting broken output.
Uses the browser's native JSON API to format and minify, with optional key sorting and custom indentation. Everything runs locally.
Strip CSS comments and whitespace, or format with 4-space indentation. Everything runs locally in your browser.
Formats HTML with the js-beautify library and configurable indentation. Everything runs locally in your browser.
Removes HTML comments, whitespace between tags and redundant spaces. Everything runs locally in your browser.
Formats JavaScript with js-beautify. Your code is never executed and never leaves the browser.
Removes JS comments and redundant whitespace. Basic minification only — variables are not renamed. Everything runs locally.
Recursively sorts every JSON key in ascending order, including nested objects and arrays. Everything runs locally.
Removes every space and newline while validating: malformed JSON errors instead of producing broken output.
Formats SQL with the sql-formatter library, supporting several dialects. Everything runs locally in your browser.
Compresses SQL onto one line and strips comments while leaving string literals untouched.
Detects XML nesting and indents it, 2 spaces by default. Everything runs locally in your browser.
Removes whitespace between XML tags and collapses redundant spaces. Everything runs locally.
Normalises YAML indentation and alignment while keeping comments and key order.
Removes YAML comments and blank lines while keeping the content. Everything runs locally in your browser.