DevPik Logo

JSON Tools

Free online JSON formatting, escaping, and data transformation tools for developers.

JSON is the universal data format of modern web development — and every JSON workflow eventually needs formatting, escaping, conversion, or comparison. This category covers all of it: escape raw text for embedding inside a JSON string; unescape log blobs so you can read the stack trace; minify JSON for production payloads; compare two API responses to spot a breaking change; convert JSON to CSV for stakeholders who live in spreadsheets, or to YAML for Kubernetes and GitHub Actions configs; flip XML feeds into JSON (and back); and auto-generate JSON Schema from a sample payload. Because all processing is client-side, you can safely paste production API responses, internal configs, or customer data without worrying about third-party server logs.

JSON Escape

Escape quotes, backslashes, newlines, tabs, and Unicode control characters so raw text becomes a valid JSON string value — perfect for embedding SQL queries, HTML, or logs inside JSON payloads.

Launch Tool

JSON Unescape

Unescape JSON-encoded strings back to readable text — turns \n into newlines, \" into quotes, and \uXXXX into Unicode characters. Perfect for decoding log payloads, API errors, and stack traces.

Launch Tool

JSON Minifier

Minify and compress JSON by removing all whitespace, newlines, and indentation. Reduce JSON file size instantly with real-time compression stats.

Launch Tool

JSON Compare

Compare two JSON objects side by side and find every difference. Visual tree diff and text diff views with additions, deletions, and modifications highlighted.

Launch Tool

JSON to CSV Converter

Convert JSON arrays to CSV with nested-object flattening (dot-notation columns), configurable delimiters (comma, semicolon, tab, pipe), and one-click download — safe for Excel, Google Sheets, and bulk imports.

Launch Tool

CSV to JSON Converter

Convert CSV or TSV data to structured JSON with automatic delimiter detection, type inference (numbers, booleans, null), RFC 4180 quoted-field handling, and file upload for large datasets.

Launch Tool

JSON to YAML Converter

Bidirectional JSON ↔ YAML converter for Docker Compose, Kubernetes manifests, GitHub Actions, and CI configs. Customize indent, inline short arrays, and preserve types across conversions.

Launch Tool

XML to JSON Converter

Bidirectional XML ↔ JSON converter with attribute prefixing (@ or _), auto-detection of repeated elements as arrays, CDATA handling, and customizable root element — great for SOAP and RSS.

Launch Tool

JSON Schema Generator

Generate a JSON Schema from sample JSON data with auto-detection of types, format patterns (email, UUID, date, IPv4), required fields, and enum values. Supports Draft 2020-12 and Draft-07 plus validation mode.

Launch Tool

YAML Formatter

Format, validate, and minify YAML with line-precise error reporting that catches indentation mistakes, stray tabs, and unquoted version strings. Customize indent size, sort keys, and toggle flow style.

Launch Tool

The JSON Tools Guide

Picking the right JSON tool

JSON Formatter is the default — it catches syntax errors, auto-fixes trailing commas and single quotes, and offers a tree view for large payloads. JSON Compare is the one to reach for when yesterday's deploy is returning a different shape than today's; a structural diff (not a text diff) filters out key-order noise and shows only real changes. JSON Escape and JSON Unescape are two sides of the same coin — use Escape when embedding a multi-line SQL query or a JWT into a JSON payload, use Unescape when reading a log or Sentry error that dumped a nested JSON string. JSON Minifier drops whitespace for production, saving 25-40% on payload size. And JSON Schema Generator kickstarts the validation layer for a new API by inferring types and formats from a sample response.

JSON ↔ CSV ↔ YAML ↔ XML workflows

Non-technical teammates almost always want data in CSV — JSON to CSV flattens nested objects with dot-notation columns so Excel and Google Sheets can open them cleanly. CSV to JSON handles the reverse with auto-type inference (turning "true" into boolean, "42" into number) for direct API use. For infrastructure configs, JSON to YAML is the bridge between API payloads and Kubernetes/Docker Compose/GitHub Actions files — but remember YAML 1.1 treats `yes`, `no`, `on`, `off` as booleans, so quote version strings like "1.2.30" explicitly. XML to JSON is mostly a legacy-integration tool (SOAP, RSS, enterprise APIs) — attributes map to `@`-prefixed keys and repeated elements auto-become arrays.

JSON precision and schema gotchas

JavaScript parses all JSON numbers as IEEE 754 doubles, which loses precision beyond 15 significant digits — Twitter/X snowflake IDs, Unix nanosecond timestamps, and large crypto amounts should always be serialized as strings, not numbers. When generating a schema from sample data, the tool marks fields as required based on whether they appear in *every* observed object, so diverse samples produce more accurate schemas (include rare optional fields in your sample for best results). And for cross-team validation, remember that Draft 2020-12 is the latest JSON Schema spec but many Go, Java, and Python libraries still target Draft-07 — pick the version your consumers actually support.