Skip to main content
Toollabz

Форматувальник JSON

Paste JSON to pretty-print or minify it. The parser runs in your browser so the document does not need to leave the device for this task.

Ця сторінка є перекладом англійського оригіналу. Рушій розрахунку той самий.

Англійська версія

Коротка відповідь

It parses the text as JSON and reprints it with indentation, or compactly, or reports the first syntax error.

Приклад: {"a":1} becomes a two-line pretty document with an indented key.

Обчислення відповідають формулі на цій сторінці; округлення та одиниці можуть змінити останню цифру. Вважайте результат навчальною оцінкою.

* Оцінка. Фактичні суми можуть відрізнятися залежно від припущень.

Що робить цей калькулятор

It parses the text as JSON and reprints it with indentation, or compactly, or reports the first syntax error.

Для кого це

Developers checking API payloads, config files or a copied object.

Як працює розрахунок

JSON.parse on the input, then JSON.stringify with a chosen indent. Errors come from the parser, not from a server.

Формула

Parse → reprint. No numerical formula.

Припущення

  • Input is text you are allowed to process locally.
  • Standard JSON, not JSON5, unless the page says otherwise.

Обмеження

  • Very large documents may hit browser memory limits.
  • Does not fetch URLs for you.

Як користуватися інструментом

  1. 1Paste the JSON.
  2. 2Choose format or minify.
  3. 3Fix the reported line if the parser fails.

Поширені запитання

Why did it fail on a trailing comma?
Standard JSON does not allow trailing commas. Remove them or convert the file.
Is my data sent to Toollabz?
Formatting runs in the browser. Do not paste secrets into any third-party page if your policy forbids it.

Пов’язані інструменти

Форматування і перевірка JSON | Toollabz