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.
Formatters
JSON Formatter and Beautifier
Format JSON with consistent two, three, or four-space indentation in a private browser workspace.
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 FormatterNDJSON Formatter and Line Validator
Validate every nonblank line as an independent strict JSON value and emit normalized one-value-per-line NDJSON with precise diagnostics.
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
Converters
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
Infer a deterministic JSON Schema Draft 2020-12 starting point from one valid sample.
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