Format anything.
Paste JSON, SQL, YAML, XML, code, dates or text. Formattr recognizes it and formats it — right here in your browser.
Try an exampleSearch all tools ⌘K
Popular tools
All 46 toolsBrowse by category
How Formattr works
- ▍{"id":1042,"status":"active","user":{"name":"Asha Rao","roles":["admin","editor"]},"tags":[]}Detected JSON · Formatted
Paste — we detect 10+ formats
JSON, YAML, XML, SQL, CSV, HTML, CSS, JavaScript, Markdown and timestamps are recognized the moment you paste.
- {"name":"formattr","indent":2,"sort":false}{ "name": "formattr", "indent": 2, "sort": false}Indent: 2 spaces
Format — with the settings you choose, remembered
Indent, dialect, keyword case and quote style stay the way you left them, per tool, on this device.
- FormatConvert to YAMLMinifyname: formattrindent: 2sort: false
Chain — convert, minify or validate in one click
Next actions move the result into the next tool without pasting it again, and back.
Private by design
Formattr processes everything in your browser. The editor runs in an isolated frame that blocks network requests by design, so your data cannot be sent anywhere. How this works
From the guides
All guides- Why is my JSON invalid?Common JSON Errors and How to Fix ThemEvery common JSON parser error explained — trailing commas, single quotes, unquoted keys, comments, BOMs and truncated input — with fixes.
- When should I use JSON and when YAML?JSON vs YAML: When to Use WhichA practical comparison of JSON and YAML, with the conversion gotchas that bite: the Norway problem, anchors, multi-document files and comments.
- What is a Unix timestamp, and why seconds vs milliseconds?Unix Timestamps ExplainedSeconds vs milliseconds, the year 2038 problem, leap seconds and time zones — everything you need to handle epoch time correctly.