Reklāmas uztur šos rīkus bezmaksas
Mēs visi ienīstam reklāmas. No otras puses, esam pārliecinājušies, ka tās šeit būtu pēc iespējas neuzbāzīgākas, un darbs, lai šos rīkus saliktu kopā un uzturētu, ir kaut kā jāapmaksā — tāpēc nevaram ļaut izmantot rīku, kamēr reklāmu blokētājs ir ieslēgts.
Atļauj usefulutils.org savā blokētājā un ielādē vēlreiz: uBlock Origin vai AdGuard — noklikšķini uz rīkjoslas ikonas un lielās barošanas pogas; Brave — noklikšķini uz lauvas (Vairogiem) un iestati uz Zemu. Pārlūkiem, kuri pēc politikas bloķē katru pieprasījumu (daži privātie vai uzņēmumu režīmi), arī vajag atļauto sarakstu.
Joprošām bloķēts. Pievieno usefulutils.org atļauto sarakstam un ielādē lapu vēlreiz.
JSON Formatter
Paste JSON to beautify it with your choice of indentation, minify it to a single line, or just validate it — every edit instantly shows a clear valid/invalid status with the exact parser message when something is wrong. Everything runs in your browser, nothing is uploaded.
Formatting is validation
To prettify JSON the tool must first parse it, so a clean result is proof that your document is syntactically valid. If it is not, the status line shows the parser's exact complaint — Expected…, Unexpected token… — with the position, so you can jump straight to the problem. Common rejects: trailing commas, single-quoted strings, comments and unquoted keys, none of which are allowed by the JSON standard.
Key order, indentation options and privacy
The formatter uses the browser's native JSON.parse and JSON.stringify, so the order of keys is preserved exactly as in the input (JSON objects keep insertion order). Choose 2-space, 4-space, tab or single-space indentation for the pretty output, or minify to a single line — perfect for shrinking payloads and embedding JSON in URLs. The whole process is local: the data never touches a server, and the ?m= and ?i= URL parameters let you share your mode and indentation as a link.
Biežāk uzdotie jautājumi
Does it keep the original key order?
Yes. The tool relies on native JSON.parse and JSON.stringify, which preserve the insertion order of object keys, so the formatted output lists keys exactly as they appear in your input.
What indentation options are available?
Two spaces (the de-facto default), four spaces, a tab character, or a single space. Beautify uses the selected indent; Minify ignores it and produces the shortest possible single-line output.
Why is my JSON reported as invalid?
JSON is stricter than JavaScript: trailing commas, comments (// or /* */), single quotes around strings and unquoted keys are all rejected. The status line shows the parser's own error message with the position of the problem so you can fix it fast.
Is my JSON uploaded to a server?
No. Parsing and formatting run locally in your browser with the built-in JSON engine — there are no server calls and nothing is stored, so sensitive data (tokens, user records, dumps) is safe to paste.
Teksts un Kods
- Case Converter — UPPER, lower, Title & sentence case
- Hash Generator — MD5, SHA-1, SHA-256 & SHA-512
- UUID Generator — Random UUID v4 on demand
- Password Generator — Strong passwords & passphrases