onlineyamltools logo

Random yaml data generator

World's simplest yaml tool

Quickly generate random Yet Another Markup Language configs. Simply set the randomization options below, press generate YAML button, and you'll immediately get random YAML. Press a button, get random YAML markup. There are no ads or downloads, and everything works right in your browser. Made by developers for developers.
announcement heads up!
We just launched a new site — Online IMAGE Tools — utilities for working with all image formats. Check it out!
YAML Randomizer Options
Maximum YAML depth
Maximum elements per level
At every level use exactly this many elements
Randomly use inline syntax for sequences and collections
Allowed YAML data types
Generate sequences?
Generate collections?
Generate numbers?
Generate strings?
Generate booleans?
String Options
Use random English words for strings and object keys
Use randomly generated characters for strings and object keys
Maximum random string length? (Only works with random strings.)
Indentation
Indent YAML with two spaces
Compress and minify YAML
Random yaml data generator tool What is a random yaml data generator?
This random YAML generator creates completely random YAML data structures. It has a plenty of YAML randomization options. It supports randomizing nesting depth of YAML and randomizing number of elements per depth level. It supports various YAML types - sequences, collections, numbers, strings, and bools. Sequences and collections can be inlined or expanded through use inline YAML syntax configuration option. String values can be either randomly generated from randomly chosen characters, or randomly selected from English disctionary. Indentation can be set to spaces or no indentation, which compresses YAML.
Random yaml data generator examples Click to use
Generate a random YAML list
In this example we generate a flat, random YAML sequence of boolean values.
Required options
These options will be used automatically if you select this example.
Maximum YAML depth
Maximum elements per level
At every level use exactly this many elements
Generate sequences?
Generate collections?
Generate numbers?
Generate strings?
Generate booleans?
Generate a random minified YAML
In this example we generate a random, nested YAML of random English words that is also inlined and minified.
Required options
These options will be used automatically if you select this example.
Maximum YAML depth
Maximum elements per level
At every level use exactly this many elements
Randomly use inline syntax for sequences and collections
Generate sequences?
Generate collections?
Generate numbers?
Generate strings?
Generate booleans?
Use random English words for strings and object keys
Compress and minify YAML
Generate a complex random YAML file
In this example we generate a crazy complicated random YAML file that has depth of 15, with 15 elements per depth level, all possible data types, and random strings with maximum length of 15.
Required options
These options will be used automatically if you select this example.
Maximum YAML depth
Maximum elements per level
At every level use exactly this many elements
Generate sequences?
Generate collections?
Generate numbers?
Generate strings?
Generate booleans?
Use randomly generated characters for strings and object keys
Maximum random string length? (Only works with random strings.)
Pro tips Master online yaml tools
You can pass options to this tool using their codes as query arguments and it will automatically compute output. To get the code of an option, just hover over its icon. Here's how to type it in your browser's address bar. Click to try!
https://onlineyamltools.com/generate-random-yaml?&depth=1&max-elements=10&always-max-elements=true&booleans=true&numbers=false&strings=false&arrays=true&objects=false
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 differences between them.
Show YAML Statistics
Show detailed information about a YAML config.
Truncate YAML
Loop over YAML and truncate lists, arrays, and strings.
Create PHP array from YAML
Convert YAML config to a PHP data structure