العربية
Back

JSON formatter and validator: pretty-print, minify and errors with line numbers, free, no registration

Paste JSON data and pretty-print it with clean indentation or minify it to one line, and any error comes back with its line and column and an Arabic explanation. Validation and formatting in your browser.

JSON
full validation with the browser standard parser
lekando.com
2
pretty-print or full minify with one button
lekando.com
L:C
error position as line and column on failure
lekando.com
100%
on your device: nothing sent, nothing stored, no account
lekando.com

Format or minify

A technical formatting and validation tool. Sensitive data stays on your device; no copy leaves the browser.

Worked example

A minified input with a common mistake:

ItemValue
Input{"name": "سارة", "age": 30,}
Resultخطأ: فاصلة زائدة قبل } في السطر 1
after fixing, it pretty-prints with two spaces{"name": "سارة", "age": 30}

How it works

  1. Paste the JSON data in the input box.
  2. Pick pretty for reading, minify for transfer, or validate only for a quick check.
  3. On a valid structure the output appears instantly with the key count and sizes.
  4. On error its line and column appear with an Arabic description of the common cause.
  5. Copy the output or share the link.

Worth knowing

  1. Most common errors: trailing comma before a bracket, single quotes instead of double, and comments that standard JSON does not allow.
  2. Validate-only mode does not rewrite your data; it just reports validity or the error position.
  3. Minify removes extra spaces and line breaks only; values and structure stay exactly as they are.
  4. Very large data may take a moment to format; all processing is local so no privacy is lost.

FAQ

How do I find the error position in JSON?

Paste the data and pick validate only; you get a message with line and column plus a description of the common cause like a trailing comma or a missing quote.

Is a trailing comma allowed?

Not in standard JSON. JavaScript allows them in code but JSON files reject them, and they are the most common error we see.

Is my data uploaded to a server?

No. Parsing and formatting happen in your browser with nothing sent, stored, or registered.

What does minify do?

It removes extra lines and spaces to produce the smallest valid form of the same data, suitable for transfer and storage.