YAML to JSON Converter
Paste YAML and get clean JSON back in the same window, with no upload. Prettify reads your YAML into a data model and serializes it as formatted JSON you can copy or download. Multi-document YAML converts too, with each document reachable from the document selector.
How the mapping works
Each YAML mapping becomes a JSON object, each sequence becomes an array, and scalars become strings, numbers, booleans, or null under a JSON-compatible type model. Anchors and aliases are expanded to the values they reference, so the JSON is fully self-contained with no back-references left dangling.
Because JSON has no notion of comments, any comments in your YAML are dropped during conversion. Prettify says so up front rather than silently discarding them, so you know the output is data-only.
Multi-document YAML
A YAML stream can hold several documents separated by triple-dash markers, which JSON cannot represent as a single value. Prettify parses the whole stream and lets you switch between documents with the selector, converting the one you are viewing so a bundled manifest does not have to be split by hand first.
That makes turning a multi-part Kubernetes or CI file into JSON for a script or an API call a paste-and-copy operation.
Check the result, then keep it local
The converted JSON opens in a full editor, so you can format it, browse it in the tree or table view, and confirm the shape before copying or downloading. The entire conversion runs in your browser, so nothing about your YAML is sent anywhere.
Frequently asked questions
Is the YAML to JSON converter free?
Yes. Converting YAML to JSON, then formatting and viewing the result, is entirely free with no sign-up. Query engines and schema validation are the Pro additions and are not needed to convert.
Does my YAML leave the browser to be converted?
No. The conversion runs locally, so a config file or manifest is transformed on your device and never uploaded to a server.
What happens to comments and anchors?
Comments are removed because JSON cannot express them, and anchors and aliases are expanded inline to the values they point at, producing self-contained JSON.
Can it convert multi-document YAML?
Yes. Triple-dash-separated documents are parsed as a set, and you convert whichever one is selected instead of manually splitting the file first.
Can I convert the JSON back to YAML?
Yes. The reverse conversion is one click away, so you can round-trip between the two formats while you work.