JSON & JSONL Parser / Formatter
Free online JSON & JSONL parser. Validate, pretty-print, and minify JSON with syntax highlighting. Auto-detects JSON Lines (.jsonl). 100% client-side.
Paste JSON on the left to see the formatted result here😄 Free thanks to ads
More iTool Features!
Character Counter
Free online character counter — count characters, words, sentences, and bytes in real time. No install, no signup.
YAML ↔ JSON ↔ TOML Converter
Live 3-way converter between YAML, JSON, and TOML. Smart schema detection for Kubernetes, Docker Compose, GitHub Actions, plus YAML pitfall warnings (Norway problem, octal, sexagesimal). 100% browser-based.
XML Parser / Formatter
Free online XML parser with real-time validation, collapsible tree view (+/-), pretty print, and syntax highlighting for elements, attributes, text, and CDATA. 100% browser-based.
JSON ↔ XML Converter
Live 2-way converter between JSON and XML. Configurable attribute prefix and text node key. 100% browser-based, no upload.
Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 strings online — free, instant, no install. Full Unicode support. See both results side by side.
EPUB to TXT Converter
Extract text from EPUB eBooks instantly. Free browser-based EPUB to TXT conversion — no install, no server upload, chapter by chapter.
Text to Speech
Free online text-to-speech tool — type any text and your browser reads it aloud. Adjust voice, speed, and playback position. No install required.
Markdown Viewer - MD File Reader Online
Open and preview MD files instantly in your browser — no install needed. Free online markdown viewer. Upload .md files or paste markdown to see live rendering with code highlighting and auto TOC.
Text Diff
Free online text diff tool — compare two texts side by side and spot every difference instantly. No install, no signup.
Frequently Asked Questions
It checks whether the JSON is written according to correct syntax. If there are errors such as missing quotes, incorrect commas, or mismatched brackets, the error location and cause are shown.
Yes, you can choose your preferred indentation (e.g., 2 or 4 spaces) to neatly format the JSON.
Minify removes all whitespace and line breaks, collapsing the JSON into a single line — useful when you need to reduce size for API requests. Pretty print adds indentation and line breaks to make the JSON easy for humans to read.
Yes, UTF-8 encoding is fully supported, so JSON containing Korean characters or any other Unicode text can be parsed and formatted without issues. Unicode escapes (\uXXXX) are also handled correctly.
Processing happens within the browser's memory. Very large files (tens of MB or more) may slow down depending on browser performance. All processing is done entirely in the browser — nothing is sent to a server.
Yes, the JSONL format (.jsonl), where each line contains one JSON object, is automatically detected. Widely used for AI training datasets and log files, it displays a numbered list of objects along with the total count. Simply drag a .jsonl file into the input area.
Online JSON Parser & Formatter
JSON (JavaScript Object Notation) is the most common data exchange format. A JSON parser validates your JSON, pretty-prints it with indentation, and highlights syntax so you can spot errors instantly.
Features
- Real-time validation with 150ms debounce as you type
- Collapsible tree view — explore nested objects/arrays with
+/−toggles - Format / Minify — 2-space, 4-space, or tab indentation, or strip whitespace
- Error location — shows "line N, col M" for parse failures
- Lenient mode auto-recovery — fixes unescaped control characters, wrap-split tokens, trailing commas, and comments
- Recovery highlight — auto-recovered values get a 🟥 red outline so you can spot what changed
- Syntax highlighting — keys, strings, numbers, booleans, null colored distinctly
- Copy / Download — copy formatted output or save as
.jsonfile - JSONL auto-detection —
.jsonlfiles shown as a numbered object list
JSONL (JSON Lines) support
JSONL (JSON Lines, extension .jsonl or .ndjson) stores one JSON object per line. It is widely used for AI training datasets (ChatGPT, Claude fine-tuning) and server log files. When the input is JSONL, this parser auto-detects it, renders a numbered object list, and shows the total object count. Drop a .jsonl file onto the input box to parse it instantly; copy and download output stays in valid JSONL format (one object per line).
Lenient mode — auto-recovery for broken JSON
JSON copied from chat apps, email clients, or terminals often contains accidental line breaks that break JSON.parse. This tool auto-recovers 4 common cases:
- Control chars inside strings (
\n,\t) → replaced with spaces - Line breaks inside tokens (e.g.
847\n521,fal\nse) → rejoined - Trailing commas → removed
- Comments (
//,/* */) → stripped (URLs preserved)
When recovery applies, a yellow warning banner appears and recovered values are outlined in red.
Privacy: 100% client-side
Your JSON is never sent to any server. All parsing happens in your browser. Safe for JSON containing API keys, passwords, or sensitive customer data.
Common parse errors
- Unexpected token: missing quotes around keys, or missing comma/colon
- Unexpected end of input: unclosed
{}or[] - Trailing comma after the last item — not allowed in strict JSON
- Single quotes — JSON requires double quotes for strings
JSON syntax cheatsheet
- Keys must be strings wrapped in double quotes
- Values: string, number, boolean (true/false), null, object
{}, array[] - No comments (
//or/* */) in strict JSON