JSON minifier
Minify JSON by removing all whitespace, after checking that it is valid, and see the size before and after.
Runs in your browserNothing uploadedWorks offline
Set up for this job. It runs on JSON formatter and validator, where every option is there to change.
Loading JSON minifierRuns on this device. Nothing is uploaded.
Questions
Does minifying change my data?
No. Only spaces and line breaks between values are removed. Keys, values and their order stay the same, and big numbers are kept exactly as written.
What if my JSON has an error?
Nothing is minified until it is valid. The page shows the line and column of the first problem and the code around it.
Is my JSON uploaded?
No. It is checked and minified in this tab. Nothing leaves your device.
Related tools
All developer toolsDeveloperjson geojson plainJSON formatter and validatorFormat, validate and minify JSON, see the exact line and column of any error, and explore it as a collapsible tree.DeveloperjsonJSON to TypeScriptTurn a JSON sample into TypeScript interfaces or types, with nested types, unions and optional keys worked out for you.Developerjson yaml ymlJSON to YAMLConvert JSON to clean, readable YAML as you type, with 2 or 4 space indents and long strings kept on one line.Developerjson yaml ymlJSON, YAML, TOML and XML converterConvert between JSON, YAML, TOML and XML in any direction as you type, with clear line and column errors.Developerjson geojson plainSort JSON keysSort the keys of every JSON object from A to Z, at every level, and get it back formatted or minified.Developerjson yaml ymlXML to JSONConvert XML to JSON as you type: attributes become @ keys and repeated elements become arrays.