A calmer way to work with JSON
json.foo is a free toolbox for developers: format, validate, minify and escape JSON, then turn it into typed models for the language you are working in.
Private by default
Formatting, validation and code generation run in your browser. Your JSON is never uploaded.
Fast on real files
Open files up to 20 MB or fetch JSON straight from a URL, then beautify, minify or escape it in one click.
Typed models
Turn a sample payload into Java, Kotlin, TypeScript, Python, Go, C# or Rust, with the options your stack needs.
Why it exists
Most online JSON formatters upload what you paste, bury the editor between banners, or both. The JSON developers paste is rarely harmless: API responses with customer data, tokens, internal URLs.
json.foo started as a personal tool: a formatter that does its work on your machine and stays out of the way, and a converter that writes the model classes nobody enjoys typing by hand.
Who builds it
json.foo is built and maintained by MasterDev, an independent software developer. It is a one-person project, and every feature in it is one I use myself.
The guides are written by me too. Each one is checked against the JSON standard and against what the tools actually do.
How it works
The site is a set of static pages. Validation and formatting use the JSON parser built into your browser, the editors are CodeMirror, and the converter is my own code. Nothing you type is sent to a server for processing.
How it is funded
json.foo is free and has no accounts. To pay for hosting and the time it takes, the site shows ads served by Google AdSense, placed around the content and never inside the editors. The site does not send what you paste to anyone, advertisers included. The privacy policy explains what the ads do with cookies.
Feedback
Found a bug or want another language in the converter? See the contact page for how to reach me and what to include.