JSON Formatter

JSON 입력

1

JSON 출력

설정

JSON 포맷팅 시작

왼쪽에 JSON을 입력하거나 Import로 파일에서 불러오세요.

Beautify, minify, validate, escape, and unescape JSONChoose 2-space, 4-space, or sorted-key outputEverything stays local in your browser

JSON을 포맷하고 검증하는 방법

11단계 – JSON을 온라인 포매터에 붙여넣거나 가져오기22단계 – 포맷 옵션 선택33단계 – 결과와 오류 확인44단계 – API/응답/로그용으로 복사 또는 다운로드

A reliable formatter workflow is simple: paste the raw payload, choose whether you need readable or compact output, review parse errors if any, then copy, download, or continue into repair, table editing, or schema generation.

From one-line payload to readable structure

Expand raw JSON before you validate, diff, or edit it

A lot of real payloads come from logs, APIs, and queues as a single unreadable line. The formatter turns that into something you can inspect in seconds.

Raw input
1
{"orderId":"SO-1024","customer":{"name":"Maeve","tier":"gold"},"items":[{"sku":"A-1","qty":2},{"sku":"B-8","qty":1}],"paid":true}
Formatted output
1
{
2
"orderId": "SO-1024",
3
"customer": {
4
"name": "Maeve",
5
"tier": "gold"
6
},
7
"items": [
8
{
9
"sku": "A-1",
10
"qty": 2
11
},
12
{
13
"sku": "B-8",
14
"qty": 1
15
}
16
],
17
"paid": true
18
}

Use pretty output for review and debugging. Switch to minified output only when you need compact transport or storage.

3 practical formatter examples

These are the common cases where formatting pays off immediately during real development work.

API response

Turn a one-line response into something you can inspect

Useful when you need to confirm fields, nested objects, arrays, and unexpected values quickly.

입력 JSON
1
{"user":{"id":42,"name":"Maeve"},"roles":["admin","editor"],"flags":{"beta":true,"suspended":false}}
포맷된 JSON
1
{
2
"user": {
3
"id": 42,
4
"name": "Maeve"
5
},
6
"roles": [
7
"admin",
8
"editor"
9
],
10
"flags": {
11
"beta": true,
12
"suspended": false
13
}
14
}

Readable structure is usually the fastest way to spot field-level mistakes in API data.

Config diff

Sort keys before comparing environment config

Stable key order makes diffs cleaner and reduces noise when reviewing configuration changes.

입력 JSON
1
{
2
"retry": 3,
3
"apiBase": "https://api.example.com",
4
"features": {
5
"betaCheckout": true,
6
"abTest": false
7
},
8
"timeout": 8000
9
}
포맷된 JSON
1
{
2
"apiBase": "https://api.example.com",
3
"features": {
4
"abTest": false,
5
"betaCheckout": true
6
},
7
"retry": 3,
8
"timeout": 8000
9
}

Sorting is useful when your real goal is comparison rather than human-friendly business ordering.

Escaped payload

Unescape a JSON string before editing it

Logs and message systems often store JSON inside strings. Unescape it first, then keep working on the actual structure.

입력 JSON
1
"{\"event\":\"login\",\"user\":{\"id\":42,\"name\":\"Maeve\"},\"success\":true}"
포맷된 JSON
1
{
2
"event": "login",
3
"user": {
4
"id": 42,
5
"name": "Maeve"
6
},
7
"success": true
8
}

If the payload is full of backslashes, unescaping is usually the first useful step.

  1. 01

    Tutorial Step

    1단계 – JSON을 온라인 포매터에 붙여넣거나 가져오기

    Start with the original payload. You do not need to clean up spacing or line breaks first.

    • 어떤 소스(API 응답, 설정 파일, 로그 등)에서든 원본 JSON을 왼쪽 편집기에 붙여넣습니다.
    • 또는 Import로 파일, URL, 샘플 데이터에서 JSON을 한 번에 불러옵니다.
    • 이 도구는 온라인 JSON 포매터로서, 복잡한 JSON을 빠르게 정리할 수 있습니다.
    • Single-line JSON is fine. The formatter can expand it into a readable structure for you.
    • When several people need to review the same payload, keep the original input intact and format it here instead of editing it by hand first.
  2. 02

    Tutorial Step

    2단계 – 포맷 옵션 선택

    Readable JSON and compact JSON solve different problems. Pick the mode that matches what you need next.

    • 들여쓰기 크기를 선택해 JSON을 보기 좋게 출력합니다(2칸, 4칸 또는 컴팩트).
    • 선택 사항: 키를 알파벳순으로 정렬해 payload 간 구조를 표준화합니다.
    • API, 저장, 운영 환경에서 컴팩트한 JSON이 필요하면 minified 출력으로 전환합니다.
    • Use Escape when you need a JSON string literal, for example inside logs or nested config values.
    • Use Unescape when the input is an escaped JSON string and you want the plain text back.
  3. 03

    Tutorial Step

    3단계 – 결과와 오류 확인

    The output area is both a result view and a fast feedback loop. Valid JSON renders immediately; invalid JSON shows an actionable error.

    • 오른쪽에서 문법 하이라이트와 일관된 들여쓰기가 적용된 JSON을 확인합니다.
    • 파싱 오류(예: 누락된 쉼표나 따옴표)에 주의하세요.
    • 포맷하는 동안 이 페이지를 빠른 JSON 문법 검사로도 활용할 수 있습니다.
    • If the payload is too broken to fix quickly, move it straight to the Repair tool.
    • When the data contains nested escaped JSON, unescape it first so the real structure becomes visible.
  4. 04

    Tutorial Step

    4단계 – API/응답/로그용으로 복사 또는 다운로드

    Once the JSON is clean, use it as the working copy for the next step instead of repeating the cleanup elsewhere.

    • Copy를 사용해 포맷된 JSON을 클립보드로 복사합니다.
    • 결과를 .json 파일로 다운로드하여 API 요청/응답 또는 로그 스냅샷에 사용할 수 있습니다.
    • 같은 포맷된 JSON을 문서나 코드 예제의 깨끗한 기준으로 재사용하세요.
    • Move the cleaned JSON into the table editor when field-level review is easier in rows and columns.
    • Generate a schema from the cleaned payload when the next step is validation, documentation, or code generation.

A common formatter workflow

1

Paste the raw payload into the formatter and expand it into readable JSON first.

2

If the parser fails, jump to the error or move the payload into Repair.

3

Once the structure is valid, choose beautified, minified, escaped, or unescaped output based on the next task.

4

Apply the output back to input if the cleaned result should become your new working copy.

5

Continue into the table editor, compare tool, or schema generator when formatting is no longer the bottleneck.

Putting the formatter at the front of the workflow usually saves time later because every downstream tool receives cleaner JSON.

초보자를 위한 빠른 팁

대부분의 JSON 오류는 누락된 쉼표, 불필요한 끝 쉼표, 또는 큰따옴표 대신 작은따옴표 사용에서 발생합니다.
모든 내용이 한 줄로 보이면 먼저 pretty‑print한 뒤, 위에 표시된 오류를 수정하세요.
디버깅 시에는 보기 좋게 포맷된 JSON을 사용하고, 운영 payload에는 압축 JSON을 사용하세요.

관련 JSON 도구

  • 포맷 전/후에 JSON을 검증해 문법 오류를 조기에 잡으세요.
  • 파싱할 수 없는 깨진 JSON은 먼저 복구한 뒤 포매터에 다시 적용하세요.
  • 깨끗한 JSON에서 스키마와 타입을 생성해 검증과 타입 코드에 활용하세요.

자주 묻는 질문

JSON 포맷팅은 무엇을 하나요?

JSON 포맷팅은 적절한 들여쓰기, 줄바꿈, 공백을 추가해 JSON 데이터를 더 읽기 쉽고 이해하기 쉽게 만듭니다.

들여쓰기를 설정할 수 있나요?

네. 2칸, 4칸 또는 압축 출력(minified)을 선택할 수 있습니다.

포맷팅하면 데이터가 바뀌나요?

아니요. 포맷팅은 표시 형식만 바꾸며, 구조와 값은 그대로 유지됩니다.

큰 JSON 파일도 포맷팅할 수 있나요?

네. 큰 JSON도 효율적으로 처리하지만, 아주 큰 파일은 처리에 잠시 시간이 걸릴 수 있습니다.

What is the difference between formatting and validation?

Formatting focuses on readability, while validation focuses on syntax correctness. This page does both in one flow.

Is my JSON uploaded to a server?

No. Formatting, validation, escaping, and unescaping all run locally in your browser.