Format, validate, and convert between YAML and JSON formats. Live validation, syntax highlighting, and bidirectional conversion.
Paste messy or minified YAML and get a cleanly indented, validated version. The formatter checks for common YAML pitfalls, incorrect indentation, tab characters, duplicate keys, and highlights errors with clear messages.
Initializing in your browser…
Format, validate, minify JSON with JSONPath queries, tree view explorer, schema validation, diff comparison, and sort keys. Multiple indent styles
Format, validate XML with XPath queries, interactive tree view, XML-to-JSON conversion, and multiple color themes
Convert images between PNG, JPG, WebP, AVIF, BMP formats. Features quality control, transparency support, and batch conversion for efficient workflow.
A CI pipeline fails with a vague YAML error and you suspect an indentation or tab problem in the config.
Input
jobs:
build:
steps:
- run: makeResult
⚠ Inconsistent indentation at line 3 (3 spaces, expected 2) Reformatted with uniform 2-space indent · ✓ now valid JSON equivalent available
YAML is whitespace-significant and forbids tabs, so a single misaligned line breaks the whole file with an unhelpful message. The tool pinpoints the offending line, normalises indentation, and can show the equivalent JSON so you can confirm the structure parses the way you intended.
Paste messy or minified YAML and get a cleanly indented, validated version. The formatter checks for common YAML pitfalls, incorrect indentation, tab characters, duplicate keys, and highlights errors with clear messages.
Format and validate Kubernetes YAML files to catch indentation errors before applying them to a cluster.
Clean up GitHub Actions, GitLab CI, or other pipeline configs where a single indentation mistake can break the build.
Format docker-compose.yml files for readability and verify structure before running containers.
The YAML specification explicitly forbids tab characters for indentation. Only spaces are permitted. This tool converts tabs to spaces automatically.
Yes, the tool can convert JSON input to YAML format since both represent similar data structures.
Yes. YAML comments (lines starting with #) are preserved in the formatted output.
Your text is processed locally in the browser. Nothing you paste or open is transmitted or logged.