Convert
Convert between JSON, YAML, and TOML data formats on your device.
Runs entirely in your browser
Nothing you paste is uploaded. Monaco and Prettier load on demand from this origin.
Direction
JSON input
YAML output
name: SafePaper tools: 61
There is no upload endpoint — your files are processed in this browser tab. Open your network tab and check. See how it stays private.
How to JSON to YAML converter
- Paste your data. Paste JSON, YAML, or TOML.
- Pick the target. Choose the format to convert to.
- Copy. Copy the converted output.
Different tools prefer different config formats — JSON for machines, YAML for humans, TOML for many Rust and Python projects. Converting between them saves hand-rewriting a config when you switch tools.
For formatting a single format in place, use the YAML or XML formatters; to generate types from JSON, use JSON to types.
Frequently asked questions
Does converting lose comments?
JSON has no comments, so converting to JSON drops them; YAML and TOML support comments but they may not survive a round trip through JSON.
Which formats are supported?
JSON, YAML, and TOML in any direction, so you can move a config between an app that wants one and tooling that wants another.
Is my data uploaded to convert it?
No. Parsing and serialization happen in the browser, so config and data stay local.
Related tools
- YAML formatterFormat and validate YAML locally with helpful parse errors.
- JSON toolkitFormat, validate, minify, and explore JSON in a collapsible tree — all in your browser.
- JSON to typesInfer TypeScript interfaces, Go structs, or Zod schemas from JSON samples.
- Config converterConvert config between .env, JSON, YAML, and TOML on your device.