Skip to main content

Config to YAML Converter

Convert JSON to YAML or YAML back to JSON. Paste, convert, copy or download. Everything runs locally — configs never leave the tab.

Processed locally · 0 bytes uploaded

Input

Output

Specific Size & Task Presets

How to use JSON ↔ YAML

  1. Paste JSON or YAML into the input box.
  2. Pick the direction: JSON → YAML or YAML → JSON.
  3. Copy the pretty-printed result or download it as a file.

Common use cases

  • Turn a Kubernetes manifest into JSON for programmatic edits.
  • Convert a JSON config into readable YAML for a repo.
  • Check YAML indentation by round-tripping through JSON.
  • Prepare fixtures in whichever format a tool expects.

Good to know

  • YAML anchors and comments are not preserved in JSON output.
  • Ambiguous scalars follow standard YAML parsing rules.
  • Invalid input raises an error — fix the syntax and retry.

Specs

Supported formats
Input & Output: JSON (.json) ↔ YAML 1.2 (.yaml / .yml)
File & batch limits
Configs and OpenAPI/Kubernetes manifests up to several MB convert instantaneously in RAM
AI model download
None (0 MB — powered by static js-yaml)
Browsers & devices
Chrome, Edge, Safari & Firefox on desktop and mobile
Offline support
Yes — works offline once page and js-yaml load

FAQ

Is my JSON or YAML uploaded?

No. Conversion uses js-yaml in your browser. API payloads and config files stay on your device.

Which YAML version is supported?

js-yaml 4 parses YAML 1.2. Anchors, aliases and most mappings work. Exotic custom tags may fail — that's a parser limit, not a server error.

Will key order be preserved?

Modern browsers keep object key order, so round-trips usually look stable. Don't treat that as a formal YAML spec guarantee.

Share this tool: