Four-space indentation to normalized two-space YAML
A mapping indented with four spaces per level is renormalized to a clean two-space step.
app:
name: toolmint
env: productionapp:
name: toolmint
env: productionBeautify and compact simple YAML in your browser. Normalize indentation for maps and lists - no upload required.
Paste YAML below.
Paste YAML above or load the example to format or minify.
One tap, no account. Your vote is saved in this browser and counted in our site analytics.
Detects the smallest indentation used in your document and renormalizes every nested key and list item to a clean two-space step.
Flags files that mix tabs and spaces, or that use inconsistent indentation jumps, before they cause a confusing parser error elsewhere.
Keeps # comments attached to their original line so annotated Kubernetes manifests and CI configs stay documented after reformatting.
Detects anchors, aliases, tags, flow collections, and block scalars and tells you plainly when a document needs a full YAML parser instead.
Copy config from a Docker Compose file, Kubernetes manifest, GitHub Actions workflow, or application settings file.
Format normalizes indentation to two spaces per level; Minify joins simple key-value pairs and list items onto a single line.
Tab characters, mixed indentation, or advanced syntax like anchors and flow collections are called out with a specific message.
Export the cleaned-up YAML to your clipboard or save it as a .yaml file for your repository.
Manifests copied between documentation, Slack, and a terminal often pick up inconsistent indentation - normalize it before applying with kubectl.
Format GitHub Actions, GitLab CI, or CircleCI YAML pulled from a template so steps and jobs are easy to read before you edit them.
Check that nested service, network, and volume definitions line up correctly after merging changes from multiple contributors.
Some editors silently insert tabs into YAML; catch the mixed-indentation error here instead of during a failed deploy pipeline run.
A mapping indented with four spaces per level is renormalized to a clean two-space step.
app:
name: toolmint
env: productionapp:
name: toolmint
env: productionComments and blank lines are dropped and simple entries are joined for compact storage.
# service config
name: api
port: 8080
tags:
- prod
- webname: api port: 8080 tags: - prod - webAll indentation analysis, formatting, and minifying happens locally in your browser. Configuration files, including anything containing environment variables or connection strings, are never uploaded to ToolMint servers.
A YAML Formatter is a browser-based utility for the indentation-sensitive configuration format used by Kubernetes, Docker Compose, and CI/CD pipelines. It detects the existing indentation step in a document, then renormalizes every key and list item to a consistent two-space level, while flagging tabs, mixed indentation, and unsupported advanced syntax along the way.
YAML is whitespace-significant, so a single misaligned key or an accidental tab character can break an entire Kubernetes manifest or GitHub Actions workflow. Reformatting catches those issues immediately and restores consistent structure after copy-pasting config between chat, documentation, and your editor, saving a frustrating debugging session later in a deploy pipeline.
This tool supports a simple YAML subset - plain mappings, lists, and scalars. It intentionally rejects anchors (&), aliases (*), custom tags (!), flow collections ({} and []), block scalars (| and >), and merge keys (<<:), since formatting those correctly requires a full YAML parser rather than heuristics.
Convert CSV to JSON Without Breaking Your Data
Why CSV to JSON conversions go wrong - quoted commas, line breaks inside cells, delimiters, and lost leading zeros - and how to check the output before it reaches your app.
URL Encoding Explained: Percent Signs, Plus Signs, and Double Encoding
How percent-encoding works, when to use encodeURIComponent versus encodeURI, why spaces sometimes become plus signs, and how to spot double-encoded URLs.
Seven Regex Mistakes That Break JavaScript Code
Unescaped dots, missing anchors, greedy matches, the stateful g flag, and catastrophic backtracking - what each mistake looks like and how to test for it before it ships.
Developer
Format and validate JSON instantly.
Updated Jul 20, 2026
Developer
Check JSON syntax and inspect structure locally.
Updated Jul 20, 2026
Developer
Format and minify SQL instantly.
Updated Jul 20, 2026
Developer
Format and minify HTML instantly.
Updated Jul 20, 2026
See every utility on the all tools page.
Found a problem or missing feature? Tell us - no account required.
Last updated: