Beautify & format
Pretty-print JSON with 2 spaces, 4 spaces or tabs, and optionally sort keys alphabetically.
Format, validate, repair & convert JSON. Private, in your browser.
A fast, private JSON toolkit for developers. No sign-up, no uploads, no tracking.
Pretty-print JSON with 2 spaces, 4 spaces or tabs, and optionally sort keys alphabetically.
See the line and column of every syntax error, the highlighted line and a plain-English explanation.
Fix trailing commas, comments, single quotes, unquoted keys, Python literals and unclosed brackets in one click.
Fold and unfold any object or array, or switch to a line-numbered, syntax-highlighted code view.
Find keys and values instantly, and click any row to copy its path, such as $.users[0].email.
Turn JSON into YAML, CSV, XML or JSON Schema, or escape and unescape JSON strings.
Generate TypeScript, Go, Java, Kotlin, Swift, Dart, C#, C++, C, PHP or Python types straight from a JSON sample.
Type $.users[?(@.active)].email in the search box to extract exactly the values you need.
Switch the input to CSV to turn spreadsheets into JSON, with automatic number, boolean and nested-key handling.
Infer a draft 2020-12 schema with types, required fields and formats like email, date-time and uri.
Get warned about duplicate keys and large numbers that silently lose precision in JavaScript.
Copy a link that contains your JSON, compressed into the URL itself, so nothing is stored on a server.
Everything runs in your browser. Your data is never uploaded, so it is safe for tokens and API responses.
After your first visit the tool keeps working without a connection, and you can install it as an app.
Shortcuts for every action, smart indentation in the editor, and full keyboard navigation.
Follows your system theme automatically, or pick light or dark yourself. Your choice is remembered.
JSON (JavaScript Object Notation) is a lightweight, text-based data format for exchanging information between servers and applications. It is the standard format for web APIs and is widely used for configuration files and data storage in every major programming language.
JSON is built from objects and arrays. Objects are wrapped in curly braces {} and hold key–value pairs separated by colons. Arrays are wrapped in square brackets [] and hold comma-separated values. Keys must be double-quoted strings; values can be strings, numbers, true, false, null, objects or arrays.
.json file onto it.Your input is checked with the browser's standards-compliant JSON parser. If something is wrong you get the line and column, the line is highlighted in the editor, and a hint explains the likely cause. Click Go to error to jump straight to it.
[1, 2, 3,] is not valid JSON.{name: "Alice"} must be {"name": "Alice"}.// or /* */ comments.{ and [ needs a matching close.Copied JSON from a JavaScript file, a log or a Python script? Click Repair and the tool rewrites it as valid JSON. It removes comments and trailing commas, adds missing commas, converts single and curly quotes, quotes bare keys, turns True/False/None into JSON literals, closes unclosed brackets and strips JSONP or const x = wrappers.
You can undo a repair with Ctrl+Z. Always check the result before relying on it.
address.city.Start typing with $ in the search box to run a JSONPath query. The output shows only the matching values, and every conversion works on the result, so you can pull $.users[*] out of a large response and export just that as CSV.
$.store.book[0].title: a single value$..price: every price at any depth$.items[?(@.price < 10)]: items matching a filter$.users[-2:]: the last two usersClick Minify to strip all unnecessary whitespace and line breaks while keeping the data identical. Minified JSON is smaller, so it transfers faster, which makes it ideal for API payloads and production builds. The status bar shows exactly how many bytes you saved.
Your JSON never leaves your device. All formatting, validation, repair and conversion happens locally in your browser, so it is safe to use with API responses, tokens and configuration files. There is no sign-up and no server round-trip, and after your first visit the tool keeps working even without an internet connection. Install it as an app from your browser's menu for one-click access.
Every tool runs in your browser. Pick one to open it with the right settings.
A JSON formatter takes raw or minified JSON and re-prints it with consistent indentation and syntax highlighting, so it is easy to read and debug. It also validates the JSON and reports any syntax errors.
No. Easy JSON Formatter runs entirely in your browser. Your JSON is never uploaded, logged or stored on a server. Share links keep the data inside the link itself.
Paste your JSON into the Input panel, open a .json file, or drop a file onto the page, then click Format or press Ctrl+Enter (Cmd+Enter on Mac). The result appears in the Output panel as a collapsible tree or as highlighted code.
When JSON is invalid, the Output panel shows the line and column where parsing failed, highlights that line in the editor, shows a snippet of the surrounding text and explains the likely cause, such as a trailing comma or a missing quote.
Yes. Click Repair to fix common problems: comments, trailing or missing commas, single quotes, unquoted keys, Python-style True, False and None, NaN and unclosed brackets. Always review the result before using it.
Yes. Choose a format from the Convert menu. Arrays of objects become CSV rows with nested fields flattened into dot-separated columns, and the TypeScript option generates interfaces from your data.
Yes. The Convert menu generates ready-to-use types for TypeScript, Go, Java, Kotlin, Swift, Dart, C#, C++, C, PHP and Python, plus a JSON Schema. Optional and nullable fields are detected from your sample data, and keys are mapped with each language's standard serialization annotations.
Type a JSONPath expression starting with $ into the search box, for example $.users[*].email or $..price or $.items[?(@.price < 10)]. The output shows only the matching values, and you can convert or download them.
Yes. Switch the Input panel from JSON to CSV, or open a .csv file. The first row becomes the keys, numbers and true/false are converted automatically, and dotted headers such as address.city become nested objects.
Yes. Click Minify to remove all unnecessary whitespace and produce compact, single-line JSON that you can copy or download. The status bar shows how much smaller it is.
Click the link icon in the Input panel to copy a share link. The JSON is compressed into the link itself, so it never touches a server, and anyone who opens the link sees the same data.
Yes, it is completely free with no sign-up. It works offline after your first visit and can be installed as an app.