Free online JSON tools for formatting, validation, and conversion
Format, validate, view, compare, generate, and convert JSON with focused tools that run locally in your browser.
Open JSON FormatterFormatters
Online JSON Formatter and Beautifier
Format, beautify and validate JSON online with 2, 3 or 4-space indentation. Preserve large numbers and keep your data in your browser.
browserJSON MinifierJSON Minifier
Remove insignificant JSON whitespace without changing keys, values, or array order.
browserJSON SorterRecursive JSON Key Sorter
Sort object keys recursively while preserving array order and JSON value types.
browserJSON RepairSafe JSON Repair Tool
Repair malformed JSON with a non-evaluating parser, then verify and format the result as strict JSON.
browserNDJSON ToolkitNDJSON Toolkit (All-in-One)
Validate JSON Lines, pretty-print records, minify NDJSON, or convert between NDJSON and JSON arrays in one workspace.
browserNDJSON MinifierNDJSON Minifier — One Record per Line
Minify NDJSON into compact JSON Lines while preserving string contents, number tokens, and record order. Validate each line and remove ignored blank lines.
browserNDJSON FormatterNDJSON Record Formatter
Pretty-print each NDJSON record with 2, 3, or 4-space indentation. Download readable text blocks; use NDJSON Minifier for one record per line.
browserJSON Redaction PreviewJSON Sensitive Field Redaction Preview
Preview deterministic key-name redaction for common credential and optional personal fields before sharing JSON.
browserJSON Array CleanupFocused JSON Array Cleanup
Remove semantic duplicates and optional null or empty-string items from one top-level JSON array.
browserJSON Object CleanupFocused JSON Object Cleanup
Recursively remove selected null, empty-string, or empty-container fields from a top-level JSON object.
browserValidators
JSON Syntax Validator
Validate strict JSON syntax with editor diagnostics and a likely line and column.
browserNDJSON ValidatorNDJSON Line-by-Line Validator
Validate NDJSON without changing your data. Get a line-by-line report of valid JSON values, invalid records, and skipped blank lines.
browserJSON Schema ValidatorJSON Schema Instance Validator
Validate a JSON instance against a local Draft 2020-12 schema without fetching remote references.
browserConverters
JSON to YAML Converter
Convert any valid JSON value into readable YAML with safe scalar quoting.
browserJSON to XMLJSON to XML Converter
Convert JSON to escaped UTF-8 XML with explicit root, item, and key-name handling.
browserJSON to CSVJSON to Safe CSV Converter
Convert JSON objects and arrays to UTF-8 CSV while neutralizing spreadsheet formula prefixes.
browserJSON FlattenerLossless JSON Pointer Flattener
Flatten valid JSON into an unambiguous map keyed by escaped RFC 6901 JSON Pointers while preserving container and value types.
browserJSON Patch ApplierSafe RFC 6902 JSON Patch Applier
Validate and atomically apply all six RFC 6902 operations—add, remove, replace, move, copy, and test—with strict pointer rules.
browserJSON String Escape / UnescapeJSON String Escape and Unescape Tool
Encode arbitrary text as one complete quoted JSON string literal, or strictly decode a JSON string literal back to exact text.
browserYAML to JSONSafe YAML to JSON Converter
Convert JSON-compatible YAML Core values to strict JSON with aliases, merges, and custom tags disabled.
browserXML to JSONSafe XML to JSON Converter
Convert well-formed XML to JSON while blocking DTD and entity declarations.
browserCSV to JSONCSV to JSON Object Array Converter
Convert header-based RFC 4180-style CSV to a JSON object array with every cell kept as a string.
browserJSON UnflattenerReversible JSON Pointer Unflattener
Rebuild JSON from the typed RFC 6901 pointer map emitted by this site's lossless flattener.
browserJSON to NDJSONJSON Array to NDJSON Converter
Write each item in a top-level JSON array as one compact NDJSON record.
browserNDJSON to JSONNDJSON to JSON Array Converter
Parse each nonblank NDJSON line as strict JSON and collect the values into one JSON array.
browserViewers
Interactive JSON Tree Viewer
Explore valid JSON as a collapsible tree with structural counts and depth metrics.
browserJSON Size AnalyzerJSON Size Analyzer and Structure Report
Measure exact UTF-8 source, formatted, and minified byte sizes together with savings, node, key, depth, object, and array counts.
browserJSON Pointer QueryRFC 6901 JSON Pointer Query
Resolve an RFC 6901 pointer against JSON with correct ~0 and ~1 decoding.
browserSafe JSONPath QuerySafe JSONPath Subset Query
Query JSON with a documented non-executable subset: root, properties, indexes, and wildcards.
browserGenerators
JSON to TypeScript Type Generator
Generate a deterministic TypeScript type alias from any valid JSON sample, including nested objects and mixed arrays.
browserJSON Schema GeneratorJSON Schema Generator from Sample
Generate a Draft 2020-12 JSON Schema from sample JSON with inferred types, required keys, and array items.
browserComparison
RFC 6902 JSON Patch Generator
Compare two JSON documents and generate a deterministic RFC 6902 patch containing safely applicable add, remove, and replace operations.
browserJSON CompareSemantic JSON Comparison
Compare two JSON values by meaning, ignoring object-key order while preserving array order.
browser