{ } JSON Decoder

Công cụ phân tích JSON trực tuyến

Định dạng, nén, kiểm tra và trực quan hóa JSON trong vài giây. Mọi thứ chạy trong trình duyệt của bạn — dữ liệu không bao giờ rời khỏi thiết bị.

Không. Toàn bộ quá trình phân tích và định dạng diễn ra trong trình duyệt của bạn. Dữ liệu không bao giờ rời khỏi thiết bị.

Hầu hết trình duyệt hiện đại xử lý mượt 1-10 MB. Tệp rất lớn (>20 MB) có thể chậm; nên dùng công cụ dòng lệnh cho các trường hợp đó.

JSON đầu vào

Hỗ trợ kéo tệp

                    
                

Kết quả

Chờ nhập

                    

Tại sao chọn JSON Decoder?

Nhanh, riêng tư, không cần cài đặt — phân tích JSON ngay trong trình duyệt của bạn.

Định dạng tức thì

Một cú nhấp để bung JSON nén thành định dạng dễ đọc, hỗ trợ thụt lề và tô màu cú pháp tự động.

Nén tối đa

Loại bỏ mọi khoảng trắng và dòng mới để tạo ra JSON nhỏ gọn nhất, phù hợp cho truyền tải qua API.

Định vị lỗi chính xác

Khi phân tích thất bại, chúng tôi hiển thị dòng và cột chính xác cùng bối cảnh xung quanh để gỡ lỗi nhanh chóng.

Cây có thể thu gọn

Xem cấu trúc lồng nhau theo dạng cây có thể mở rộng/thu gọn, hiển thị độ dài mảng và số khóa ngay trên dòng.

Ưu tiên quyền riêng tư

Mọi thứ được xử lý trong trình duyệt của bạn. Dữ liệu không bao giờ được tải lên bất kỳ máy chủ nào.

Nhập & xuất tệp

Kéo thả tệp.json để tải và xuất kết quả về.json chỉ với một cú nhấp.

How JSON Decoder works

Pure browser-side JSON parsing — no upload, no log line, no third-party API call.

  1. 1

    Paste or drop your JSON

    Paste a JSON string into the editor or drop a .json file from disk. The browser reads it via FileReader directly into JavaScript memory — no XHR, no fetch, no upload. Even multi-megabyte payloads are fine; the parser streams them in chunks if needed.

  2. 2

    Native parser runs in the browser

    We hand the string to JSON.parse — the same V8 / SpiderMonkey / JavaScriptCore parser your browser uses for every fetch response. If parsing fails, the position of the bad character is reported with line and column so you can fix it instantly. No regex hacks, no ambiguous error messages.

  3. 3

    Tree view rendered locally

    Once parsed, the result is rendered as a collapsible tree using virtualised DOM nodes — so a 100,000-key object stays smooth at 60 fps. You can collapse arrays, copy paths, and navigate by keyboard.

  4. 4

    Format, minify, or download

    Pretty-print with 2 / 4 / tab indent, minify to a single line, copy to clipboard, or download the cleaned file. The transformation runs in your browser — the resulting bytes never leave the page.

Common use cases

Real situations where browser-only JSON parsing wins.

Debugging API responses

Copy a minified response body from your backend logs or DevTools, paste it here, and instantly see the structure. No need to install a CLI tool or set up jq aliases.

Inspecting JWT payloads

After Base64-decoding the middle segment of a JWT, paste the resulting JSON to see the claims, expiry, and any custom fields. The token never touches a server other than the one issued it.

Cleaning configuration files

Re-format a malformed .json config (Tailwind, ESLint, package.json, tsconfig) so it stops failing in CI. Catches trailing commas and duplicate keys that hand-written configs accumulate.

Comparing API contracts

Open two browser tabs side by side, paste the old and new schema. Use the tree view to spot added or removed fields without diffing escaped strings.

Why browser-only matters here

Your JSON often contains real customer records, API keys, JWT secrets, internal IDs, and PII. Most online JSON formatters POST your payload to their server — meaning a third party logs every field you paste. iKit's JSON Decoder runs as JavaScript in your browser tab, so the parser sees your data, but no server ever does.

  • Zero network requests during parsing — verifiable in DevTools → Network.
  • Works offline once the page is loaded — disconnect the network and parsing still works.
  • No server logs, no rate limits, no signup, no daily quota.

Hướng dẫn liên quan

Hướng dẫn chi tiết và so sánh công cụ từ blog iKit.

Câu hỏi thường gặp

Công cụ này có tải lên dữ liệu JSON của tôi không?

Không. Toàn bộ quá trình phân tích và định dạng diễn ra trong trình duyệt của bạn. Dữ liệu không bao giờ rời khỏi thiết bị.

Hỗ trợ JSON lớn đến mức nào?

Hầu hết trình duyệt hiện đại xử lý mượt 1-10 MB. Tệp rất lớn (>20 MB) có thể chậm; nên dùng công cụ dòng lệnh cho các trường hợp đó.

Tại sao lại xuất hiện lỗi "Unexpected token"?

Thường do thiếu dấu ngoặc kép, thừa dấu phẩy hoặc dùng dấu ngoặc đơn. Hãy chuyển sang tab "Lỗi" để xem dòng và cột chính xác.

Có hỗ trợ JSON5 hoặc JSON có chú thích không?

Hiện chỉ hỗ trợ JSON nghiêm ngặt theo RFC 8259. Hãy cho chúng tôi biết nếu bạn cần hỗ trợ JSON5 / JSONC.

Có thể dùng ngoại tuyến không?

Sau lần tải đầu tiên, hầu hết tài nguyên được trình duyệt lưu đệm, nên bạn có thể dùng khi có hoặc không có mạng.