YAML Formatter
YAML Formatter — format and re-indent YAML with consistent spacing. It runs entirely in your browser, so nothing is uploaded and it works fully offline.
YAML Formatter is a browser-based web developer tool on WebDevToolsBase. YAML Formatter — format and re-indent YAML with consistent spacing. It runs entirely in your browser, so nothing is uploaded and it works fully offline. To use it, paste your input and view the result directly in your browser — no signup and nothing to install.
YAML Formatter is a free YAML Tools utility that runs entirely in your browser — nothing you enter is uploaded.
Converts one document using JSON-compatible values and string mapping keys. Numbers that would change during conversion, negative zero, nonfinite values, timestamps, binary data, sets, ordered maps, pairs, merge keys, cycles and unknown tags are rejected. Quote values only when text is intended; this changes their type. Ordinary aliases are expanded for JSON. Comments, quote style and numeric spelling are not retained. Limits: 2 MiB of text, 50,000 expanded values and 100 nesting levels.
How to use YAML Formatter
- Paste one YAML document and select the indentation width.
- Read the normalized YAML output. Comments, original quotes and numeric spelling are not retained.
- Resolve any unsupported-value or syntax error before copying. Keep the original document separately.
- Copy the current completed result and verify it in the receiving application.
About this tool
This browser tool works with the supported JSON-compatible subset of YAML described above. A completed result means that this conversion succeeded; it does not validate an application schema, a deployment configuration or another programming language’s parser.
Keep the original source before formatting or conversion. Formatting normalizes presentation and removes comments. The operation runs locally in this browser and does not upload the entered document to a conversion service.
Frequently asked questions
What is YAML Formatter for?
YAML Formatter lets you format your input right in the browser using the Indent control, with the result shown instantly and nothing uploaded.
Do I need an account for YAML Formatter?
No — YAML Formatter needs no account, sign-up or installation.
Is my input private in YAML Formatter?
Yes — your input never leaves your device; YAML Formatter does all the work in your browser.
How does YAML Formatter handle YAML indentation errors?
YAML Formatter reports the problem inline so you can fix the indentation, all within your browser.
Does YAML Formatter work offline?
Once the page has loaded, YAML Formatter keeps working with no network connection.