결과

JSON 포매터란?

한 줄로 길게 이어진 JSON 데이터를 들여쓰기가 적용된 읽기 쉬운 형태로 펼치거나, 반대로 공백을 모두 제거해 용량을 줄이고, 문법에 오류가 없는지 검사하는 도구입니다. API 응답을 확인하거나 설정 파일을 손볼 때 가장 먼저 거치는 단계입니다. 입력한 데이터는 서버로 전송되지 않고 브라우저 안에서만 처리됩니다.

사용 방법

  1. JSON 문자열을 입력창에 붙여넣습니다.
  2. 정렬(Beautify)을 누르면 계층에 따라 들여쓰기가 적용됩니다.
  3. 압축(Minify)을 누르면 줄바꿈과 공백이 제거돼 한 줄이 됩니다.
  4. 문법 오류가 있으면 어디가 잘못됐는지 메시지로 알려줍니다.

JSON이란 무엇인가

JSON(JavaScript Object Notation)은 프로그램끼리 데이터를 주고받을 때 쓰는 표기 형식입니다. 서버가 앱에 사용자 정보를 넘기거나, 설정값을 파일로 저장할 때 대부분 이 형식을 씁니다. 규칙이 단순해서 사람이 눈으로 읽을 수 있으면서도 기계가 해석하기 쉽다는 점이 널리 쓰이는 이유입니다.

담을 수 있는 자료는 여섯 가지뿐입니다. 문자열, 숫자, 참·거짓, null, 그리고 이들을 묶는 배열 [ ]과 객체 { }입니다. 이 단순함 덕분에 어떤 언어에서든 같은 방식으로 읽을 수 있습니다.

JSON 오류의 대부분은 이 넷

정렬과 압축은 언제 쓰나

사람이 읽어야 할 때는 정렬, 기계만 읽으면 될 때는 압축입니다. 들여쓰기와 줄바꿈은 데이터 자체에는 아무 영향이 없지만 용량은 차지합니다. 큰 응답이라면 압축만으로 20% 안팎이 줄어들어 전송 속도에 영향을 줍니다. 반대로 깃(Git)으로 관리하는 설정 파일은 정렬해두는 편이 낫습니다. 한 줄짜리 파일은 무엇이 바뀌었는지 비교가 불가능하기 때문입니다.

자주 묻는 질문

Q. 붙여넣은 데이터가 어딘가로 전송되나요?
아니요. 모든 처리가 브라우저 안에서 이뤄집니다. 다만 실서비스의 토큰이나 개인정보가 담긴 응답은 어떤 온라인 도구든 붙여넣기 전에 한 번 더 생각해보시길 권합니다.

Q. 키 순서가 바뀌어도 되나요?
JSON 객체의 키는 순서를 보장하지 않는 것이 원칙이라 의미는 같습니다. 다만 파일 비교를 깔끔하게 하려면 순서를 일정하게 유지하는 편이 좋습니다.

Q. 한글이 \uXXXX 형태로 보입니다.
유니코드 이스케이프 표기로, 내용은 같습니다. 최근 시스템은 대부분 UTF-8을 그대로 처리하므로 굳이 이스케이프할 필요는 없습니다.

What is the JSON Formatter?

Expand a single-line JSON blob into readable, indented form; collapse it back down to save bytes; or check it for syntax errors. It's usually the first step when inspecting an API response or editing a config file. Your data stays in the browser and is never uploaded.

How to Use

  1. Paste your JSON into the input box.
  2. Beautify applies indentation that reflects the structure.
  3. Minify strips whitespace and line breaks down to one line.
  4. If the syntax is invalid, a message points to what went wrong.

What JSON Actually Is

JSON (JavaScript Object Notation) is a format programs use to exchange data — a server sending user details to an app, or settings written to disk. Its appeal is that the rules are simple enough for humans to read while remaining trivial for machines to parse.

It supports just six things: strings, numbers, booleans, null, and the two containers, arrays [ ] and objects { }. That minimalism is why every language reads it the same way.

Four Errors Account for Most Failures

When to Beautify, When to Minify

Beautify when a human reads it, minify when only a machine does. Indentation changes nothing about the data but does occupy space — on a large response, minifying typically saves around 20%, which matters over the wire. Config files under version control are the opposite case: keep them formatted, because a one-line file makes diffs unreadable.

FAQ

Q. Is pasted data sent anywhere?
No, everything runs locally. Even so, think twice before pasting production tokens or personal data into any online tool.

Q. Does key order matter?
Object keys are formally unordered, so the meaning is unchanged. Keeping a stable order still helps produce clean diffs.

Q. Why do non-Latin characters show as \uXXXX?
That's Unicode escaping; the content is identical. Modern systems handle UTF-8 directly, so escaping usually isn't necessary.