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 validation result
0 chars
You can also drop a JSON or JSONL file here
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

What is JSON validation?

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.

Can I change the indentation level?

Yes, you can choose your preferred indentation (e.g., 2 or 4 spaces) to neatly format the JSON.

What is the difference between JSON minify and pretty print?

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.

Is JSON with Korean or other Unicode characters supported?

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.

Can it handle large JSON files?

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.

Can JSONL (JSON Lines) files also be parsed?

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

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:

  1. Control chars inside strings (\n, \t) → replaced with spaces
  2. Line breaks inside tokens (e.g. 847\n521, fal\nse) → rejoined
  3. Trailing commas → removed
  4. 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

JSON syntax cheatsheet

Help us improve this tool

Share what you like, what needs work, or features you'd like to see