᠎᠎᠎          
51K

Yaml prettifier

World's simplest yaml tool
Quickly prettify Yet Another Markup Language. Enter your YAML in the input box on the left and you'll immediately get it beautified in the output box on the right. Enter YAML, get it prettified. There are no ads or downloads, and everything works right in your browser. Made for developers by developers from team Browserling.
announcement check out our new project!
We just created something new for all science fans – SCIURLS – a neat science news aggragator. Check it out!
YAML Indentation
Spaces per YAML depth level.

What is a yaml prettifier?

learn more about this tool
This YAML prettifier rewrites ugly YAML (Yet Another Markup Language) files to beautiful YAML files. It can uncompress compressed YAML and expand inline YAML syntax. It only has one configuration option which defines how many spaces to use per indentation level.

Yaml prettifier examples

Click to use
Beautify a minified YAML file
In this example we prettify a YAML file that was compressed earlier. Inline syntax gets expanded and indented with two spaces per data structure depth level.
[{name: 'unshielded twisted pair', speeds: [10mbps, 100mbps]}, {name: 'shielded twisted pair', speeds: [10mbps, 100mbps, 1gbps]}, {name: 'fiber optics', speeds: [100mbps, 1gbps, 10gbps]}]
- name: 'unshielded twisted pair' speeds: - 10mbps - 100mbps - name: 'shielded twisted pair' speeds: - 10mbps - 100mbps - 1gbps - name: 'fiber optics' speeds: - 100mbps - 1gbps - 10gbps
Required options
These options will be used automatically if you select this example.
Spaces per YAML depth level.
Pro tips Master online yaml tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlineyamltools.com/prettify-yaml?input=%5B%7Bname%3A%20%27unshielded%20twisted%20pair%27%2C%20speeds%3A%20%5B10mbps%2C%20100mbps%5D%7D%2C%20%7Bname%3A%20%27shielded%20twisted%20pair%27%2C%20speeds%3A%20%5B10mbps%2C%20100mbps%2C%201gbps%5D%7D%2C%20%7Bname%3A%20%27fiber%20optics%27%2C%20speeds%3A%20%5B100mbps%2C%201gbps%2C%2010gbps%5D%7D%5D&indent-spaces=2
All yaml tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly color code the syntax of a YAML file.
Quickly prettify a YAML configuration file.
Quickly minify a YAML configuration file.
Quickly check a YAML file for syntax errors and report them.
Quickly convert a YAML config to a JSON config.
Quickly convert a JSON file to a YAML file.
Quickly convert a YAML document to an XML document.
Quickly convert XML markup to YAML markup.
Quickly convert YAML data to CSV data.
Quickly convert a YAML dataset to a CSV dataset.
Quickly convert YAML format to TSV format.
Quickly convert TSV files to YAML files.
Quickly convert YAML to a PNG, GIF, JPG or BMP Image.
Quickly convert YAML to base-64 encoding.
Quickly convert previously base-64 encoded YAML back to YAML.
Quickly URL-escape a YAML file.
Quickly URL-unescape a YAML file.
Quickly edit a YAML file in a simple YAML editor.
Quickly generate random YAML configs.
Coming soon These yaml tools are on the way
Diff Two YAML Files
Compare two YAML files and show their differences.
Show YAML Statistics
Show detailed information about a YAML config.
Flatten YAML
Quickly flatten a nested YAML config file.
Truncate YAML
Loop over YAML and truncate lists, arrays, and strings.
Create a PHP Array from YAML
Convert YAML config to a PHP data structure.
Convert YAML to Properties
Convert a YAML file to a properties file.
Convert Properties ot YAML
Convert a properties file to a YAML file.
Convert YAML to TOML
Convert a YAML file to a TOML file.
Convert TOML to YAML
Convert a TOML config to a YAML config.
Convert YAML to NestedText
Convert a YAML file to a NestedText file.
Convert NestedText to YAML
Convert a NestedText config to a YAML config.
Convert YAML to PDF
Create a PDF file from a YAML file.
Sort YAML
Sort a YAML file by keys or by values.
Extract Keys from YAML
Find and extract all keys from a YAML file.
Extract Values from YAML
Find and extract all keys from a YAML file.
Extract Strings from YAML
Find and extract all strings from a YAML file.
Extract Numbers from YAML
Find and extract all numbers from a YAML file.
Extract Comments from YAML
Find and extract all comments from a YAML file.
Remove Comments from YAML
Clean up a YAML configuration file from comments.
Add Errors to YAML
Add tiny errors to YAML and create an invalid YAML file.
Change All Quotes to Double Quotes
Normalize all quotes in a YAML file to double quotes.
Change All Quotes to Single Quotes
Normalize all quotes in a YAML file to single quotes.
Visualize YAML Structure
Create an abstract image that represents YAML data.