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.
Stored locally for now - helps us improve this tool.
Free utilities designed for privacy, speed, and everyday reliability.
100% Free
Core tools stay free with no paywall to unlock basics.
No Registration Required
Open a tool and start immediately - no account needed.
Privacy First
We avoid unnecessary collection and keep processing local when possible.
Browser Processing
Most tools run in your browser so your input never needs a server round-trip.
Fast & Secure
HTTPS everywhere with instant, client-side results for everyday tasks.
Mobile Friendly
Layouts and controls are built for phones, tablets, and desktops.
Updated Regularly
Tools and content are improved continuously as the platform grows.
Local visit data for this browser only.
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.
Understanding JWT Tokens: Inspect Safely, Trust Carefully
What JSON Web Tokens are, how header/payload/signature fit together, how to decode them safely, and the security caveats developers still miss.
How to Format and Validate JSON Without Losing an Afternoon
Common JSON syntax errors, when to pretty-print or minify, how validation catches bad payloads early, and practical tips for API debugging.
Why Browser-Based Tools Are Often More Private
How client-side processing keeps files on your device, when servers are still necessary, and how ToolMint approaches privacy for everyday utilities.
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
Security
Generate secure random passwords instantly in your browser.
Updated Jul 20, 2026
Text
Count words, characters, and reading time instantly.
Updated Jul 20, 2026
Text
Count characters and spaces with optional limits.
Updated Jul 20, 2026
Text
Convert text between common letter cases.
Updated Jul 20, 2026
Converter
Convert CSV to JSON instantly.
Updated Jul 20, 2026
Converter
Convert JSON arrays to CSV instantly.
Updated Jul 20, 2026
Converter
Convert XML to JSON instantly.
Updated Jul 20, 2026
Converter
Convert JSON into pretty XML instantly.
Updated Jul 20, 2026
Browse all tools on the homepage. Current tool: yaml-formatter.
Found a problem or missing feature? Tell us - no account required.
Last updated: