Tidy YAML indentation, validate structure and convert between YAML and JSON.
Application config
Nested mapping with a list
server:
host: localhost
port: 8080
features:
- auth
- metricsCI pipeline
Typical build definition
name: build
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4Broken indentation
Inconsistent spacing — see the error
parent:
child: 1
grandchild: 2Application config
Nested mapping with a list
server:
host: localhost
port: 8080
features:
- auth
- metricsCI pipeline
Typical build definition
name: build
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4Broken indentation
Inconsistent spacing — see the error
parent:
child: 1
grandchild: 2Manifests, pipelines, compose files and application configs all work. Parsing runs as you type.
If the document cannot be parsed you get the line number and a description. Indentation problems and tab characters are the most common causes.
Re-emit the document with clean two-space indentation, or switch the output to JSON when a tool needs that instead.
Tabs, inconsistent indentation and mis-nested blocks are exactly the errors that are hardest to spot by eye and easiest for a parser to find.
YAML and JSON share a data model, so switching between them is lossless for anything that does not use YAML-specific features like anchors.
Everything happens in your browser, which matters more than usual here — configuration files routinely contain credentials.
YAML is whitespace-significant, which means a single misplaced space can silently change what a configuration means or stop it parsing altogether. This tool parses your document properly, reports errors with the line they occur on, and re-emits it with consistent indentation. Because YAML and JSON describe the same data model, it also converts cleanly between the two — useful when a tool wants one format and your file is in the other. Kubernetes manifests, CI pipelines, Docker Compose files and application configs all work.
Keep going
Related pages in Developer Tools, plus what others are using right now.
More developer tools that pair well with this one.
Format, validate and minify JSON, with errors that point to the exact line.
Indent and validate XML, with clear messages when tags do not match.
Format JavaScript and TypeScript with the same rules your editor uses.
Turn JSON into readable YAML, with quoting and multiline strings handled properly.
Format SQL queries across dialects, with consistent keyword casing and indentation.
Indent messy HTML into readable, consistently structured markup.
Create strong random passwords with full control over length and characters.
Work out any percentage — of a number, as a share, or as a change.
Count words, characters, sentences and paragraphs as you type.
Convert between length, weight, temperature, volume, speed, data and more.
Count characters with and without spaces, against the limits that matter.
Find the mean, median, mode and range of a list of numbers, with the working shown.
Sample and population standard deviation and variance, both shown, with the working.
Turn a logo into favicon.ico, the PNG sizes a site needs, and the HTML to declare them.
Check a downloaded file against its published checksum, without uploading anything.
Stamp text like DRAFT or CONFIDENTIAL across a PDF, in your browser.
See how savings grow with compounding, including regular contributions.
Shrink JPEG, PNG and WebP files with a quality slider and a live size comparison.