formatly

Paste anything.
Get it formatted.

JSON, YAML, Mermaid, XML, SQL and Markdown, tidied as you type, with errors that point at the exact line.

Input · YAML
Output

Paste YAML on the left

YAML formatter and validator

Paste YAML to re-indent it consistently and check that it parses. Comments, quote styles and document separators are kept, so the output still reads like your file.

What it does

Questions

Does it remove my comments?
No. Comments are kept in place, along with your choice of single, double or no quotes.
Why can't I indent YAML with tabs?
The YAML specification forbids tabs for indentation, so offering them would produce files other tools reject.

Other formatters

A private formatter for the formats you paste every day

Paste JSON, YAML, Mermaid, XML, SQL and Markdown on the left and get it tidied on the right as you type. Errors name the line and column. It formats and checks; it never converts one format into another.

What it does

Questions

Is my data sent to a server?

No. Formatting runs in your browser, on your own device. What you paste is kept in memory only: it is never uploaded or saved.

Can it convert JSON to YAML, or other formats?

No, on purpose. Each page formats one format and keeps it that format.

What happens with invalid input?

You get an error with the line and column instead of a half-formatted result. JSON is checked strictly, so comments and trailing commas are reported.

Is anything remembered between visits?

Your settings (like the SQL dialect) and how you arranged the panes are remembered in your browser. The text you paste is not.