YAML -> JSON · Local tool
YAML to JSON
Convert YAML to JSON, including multi document streams.
Last updated
How do I convert YAML to JSON without uploading it?
Paste the YAML into filetity's converter and the JSON appears beside it, inside the browser tab, with nothing sent anywhere. That matters here more than on most conversions, because the YAML people convert is usually a Kubernetes manifest or a CI configuration, and those hold secrets. Several documents separated by three dashes become an array rather than the first being kept and the rest dropped, and the page says how many it found. Anchors and aliases are expanded, since JSON cannot reference a value from elsewhere in the same document. Broken YAML gets the line and column where it stopped, which is usually an indentation problem or a tab, because YAML forbids tabs for indentation entirely.
01 / Your device
the file stays here
02 / Browser memory
the work runs locally
03 / Back to you
saved on this device
When you would use this
Situations, not settings.
- A Kubernetes manifest a tool wants as JSON
- Multi document streams separated by three dashes become an array rather than the first document being kept and the rest dropped.
- A CI config you need to inspect programmatically
- Anchors and aliases are expanded, so the JSON holds the actual value everywhere the alias appeared.
- YAML that will not parse and will not say why
- The line and column where it stopped. Usually indentation, or a tab, which YAML forbids for indentation entirely.
How it works / no cloud
A conversion engine, not an upload form.
Parsed with js-yaml under its default schema, which does not construct arbitrary types, so a document cannot instantiate anything simply by being parsed. That has been a real vulnerability class in YAML libraries, and it is why the wider schemas are not offered here.
- Offline ready
- Installable app
- No file limit queue
Straight answers
No accordion. Nothing hidden.
- Is it free?
- Yes, with no watermark and no page limit.
- Does it need an account?
- No. There is no account system.
- Is my file processed on my device?
- Yes. The file is read by your browser and never uploaded. There is no server to send it to.
- What formats are supported?
- YAML in, including anchors, aliases, block scalars and multi document streams. Indented JSON out.
- What are the limits?
- No size limit beyond what your browser will hold. Comments are dropped, because JSON has nowhere to put them.
- Does it work on mobile?
- Yes, on any modern mobile browser. Large files are limited by the memory the phone gives the browser.
- Does it work offline?
- Yes, once the page has loaded. The tool keeps working with no network connection.
- What happens to a file with several documents in it?
- They become an array, and the page tells you how many there were. A stream separated by three dashes is normal in Kubernetes output, and JSON has no way to express one, so the alternative is keeping the first document and silently dropping the rest, which is what a plain load call does.
- Why did my version number become a number?
- Because YAML types unquoted scalars, so 1.10 is the number 1.1 and the trailing zero is gone. That is the format rather than the tool, and it is the single most common YAML surprise. Quote it in the YAML and it stays a string all the way through.
- Does it handle anchors and aliases?
- Yes. An anchor defines a value and an alias reuses it, and the conversion expands them, so the JSON contains the value everywhere the alias appeared. JSON has no way to reference a value from elsewhere in the same document, so expanding is the only faithful answer.
- What do I get when the YAML is broken?
- The line and column where parsing stopped, and what was wrong there. Indentation errors and a tab used for indentation are the two most common causes, and YAML forbids tabs for indentation entirely, which catches people whose editor inserts them.
- Is it safe to paste a manifest with secrets in it?
- It goes nowhere. There is no upload and no request in the path, so the document lives in the tab and disappears when you close it. That is the reason this exists rather than pointing you at one of the many converters that post your YAML to a server.
Keep working locally
3 available · more coming