Is my data safe? Does it get sent to a server?
Completely safe. This tool runs 100% in your browser using JavaScript. Your data never leaves your device and is never sent to any server. It is ideal for formatting sensitive API responses, config files, or private JSON data.
What is the difference between Format and Minify?
Format adds indentation and line breaks so the data is easy to read; you can choose 2 spaces, 4 spaces or tabs and sort JSON keys A to Z. Minify removes the whitespace between values or tags to make the smallest string, without changing any values. The status bar shows how much smaller the minified result is.
Can it detect errors in my JSON or XML?
Yes. The error box shows a plain-English message, the line and column, the lines around the problem with a marker under the exact spot, and a Show in input button that jumps to it. For JSON with comments, trailing commas, single quotes or unquoted keys, a Fix common errors button produces valid JSON in the output without changing your input.
What JSON and XML features are supported?
For JSON: objects, arrays, strings, numbers, booleans, null and deep nesting, with numbers kept exactly as written. For XML: elements, attributes, namespaces, text, CDATA, comments, processing instructions, DOCTYPE and the XML declaration. Mixed content such as text with inline tags, and elements with xml:space="preserve", are kept exactly as written.
Is there a size limit for input data?
Inputs and files up to 10 MB are accepted. JSON larger than 300 KB is processed in a background thread so the page stays responsive. Results longer than 1 million characters are shown without syntax colours to keep scrolling smooth.
How to format and validate JSON online for free without signing up?
Simply paste your raw dataset into the code window and click Format or use the Ctrl + Enter shortcut. The code structure aligns instantly with clean syntax colors. There are no usage fees, no registration profiles to fill out, and no software tools to install.
Can I use this JSON formatter on mobile without installing an app?
Yes! ToolTiny's JSON and XML formatter works entirely in your browser on any device — iPhone, Android, Windows, or Mac. No app or software installation needed to format or validate JSON and XML online.
Do I need to sign up or create an account to format JSON?
No account or registration is needed. Just paste your JSON or XML data and click Format — it's 100% free with no sign-up required.
What is a JSON beautifier?
A JSON beautifier converts compact or minified JSON into a readable format with indentation, line breaks, and syntax highlighting.
Can I validate JSON online for free?
Yes. Paste your JSON data into the editor and click Format to validate the syntax instantly without signing up.
Does this tool support XML beautify and minify?
Yes. You can format, validate, beautify, and minify XML data directly in your browser.
Can I use this as a JSON viewer?
Yes. The formatted output works as a simple JSON viewer with indentation and syntax highlighting for easier reading.
Does the formatter keep large numbers exactly?
Yes. Many online formatters pass data through JavaScript, which rounds integers above 9,007,199,254,740,991, so an ID like 12345678901234567890 becomes 12345678901234567000. This tool keeps every number exactly as you wrote it, including 1.10 and 1e400, and tells you when a number is too large for JavaScript.
What happens with duplicate keys?
The JSON standard does not forbid them, but most programs silently keep only the last value. The formatter keeps both copies and shows a warning with the key name and line number, so you can decide which one is correct.
What does Fix common errors do?
It repairs the mistakes people often copy from JavaScript or config files: // and /* */ comments, trailing commas, single-quoted strings and unquoted property names. The result appears in the output as valid JSON and the status bar lists what was changed. Your input is not modified.
Can I convert JSON to XML or XML to JSON?
Yes. In JSON mode, JSON to XML turns objects into elements, arrays into repeated elements and keys that start with @ into attributes. In XML mode, XML to JSON turns attributes into @name keys, repeated elements into arrays and text into values. XML values stay as text, because XML does not say whether 10 is a number or a string.
What is the Tree view?
Tree shows JSON as folders you can open and close, with the number of items in each object or array. Click any entry to see its JSONPath, for example $.tools[0].id, and copy it for use in code or API tests.
My XML or JSON shows < and " instead of < and ". Can I format it?
Yes. Text copied from logs, history tables or web pages is often HTML-encoded. The formatter detects it and shows a Decode HTML entities button; one click turns < back into <, " into " and so on, then formats the result. Undo decode puts your original text back.
Can I format a log with many JSON or XML records?
Yes. If the input has one JSON object per line (NDJSON / JSON Lines), one XML document per line, or several XML documents that each start with <?xml, the formatter splits them into records. Use Prev, Next or the list to view each record formatted, see which ones are exact duplicates, and Download all to save every record formatted in one file.
How do I escape or unescape a JSON string?
Escape turns the text in the input into a JSON string, with quotes, backslashes and line breaks escaped, ready to paste inside another JSON value. Unescape does the reverse, which is useful when an API returns JSON stored inside a string. Use as input then lets you format the result.
Community Comments