YAML to JSON

Use the fields above to transform, validate, or format input. Errors appear in the on-page alert when parsing fails.

YAML → JSON (limited)

Accepts JSON pasted as text, or simple indented key: value maps (no flow collections). Nested objects use further indentation.

How it works

Parsing and encoding run entirely in JavaScript here—no server sees your pasted content unless a tool explicitly says it fetches remote data.

Quick tips

  • Start with a minimal sample so errors are easier to pinpoint.
  • Apply one transform at a time and verify each intermediate result.
  • Copy output from the tool instead of manually retyping values.

Use this tool for

  • Formatting or minifying snippets before pasting into a repo or ticket.
  • Checking encodings (Base64, hex, URL) without third-party paste services.
  • One-off developer checks during debugging.

Common questions

Which inputs matter most for YAML to JSON?

Confirm the field units (px, degrees, charset) match what you intend; mixed bases are the usual surprise on this kind of tool.

Why does my answer differ slightly from another site?