YAML / JSON Converter

Paste YAML or JSON and convert both ways. Switch formats quickly for Kubernetes, Docker Compose, and CI configs.

Privacy: processed locally, never uploaded.

↓ Paste in the input area below to see results instantly

Paste YAML or JSON here

Pick a direction, then click Convert.

Paste YAML or JSON and convert both ways. Switch formats quickly for Kubernetes, Docker Compose, and CI configs.

Quick start

  1. Pick direction

    YAML β†’ JSON or JSON β†’ YAML.

  2. Paste and convert

    Invalid YAML or JSON shows a parse error.

vs JSON Formatter

This tool converts YAML ↔ JSON structure; use JSON Formatter to prettify JSON only.

Typical Workflow

When working with Kubernetes or Docker Compose configurations, developers often need to switch between YAML and JSON. Common scenarios include: 1) Copying CI/CD configs into JSON-formatted API requests 2) Converting JSON API responses to more readable YAML for debugging. The tool preserves comments and formatting for immediate use.

Pro tip: When editing YAML in VS Code, convert to JSON first to process complex structures with jq commands, then convert back. The tool handles files up to 5MB completely in your browser - no sensitive data leaves your machine.

Examples

YAML sample

Input

name: towalles
ready: true

Output

{
  "name": "towalles",
  "ready": true
}

FAQ

YAML anchors?

Depends on the parser; complex anchors may expand or fail when converting to JSON.

Does key order persist after conversion?

Yes. Both YAML 1.2 and JSON specifications preserve key order, which is crucial for sequence-sensitive configs like Istio rules. Note some legacy parsers may not comply.