YAML Tools
YAML Multi-Document Splitter
Split multi-document YAML (---) into separate documents.
Loading tool…
What is Split YAML?
A splitter for multi-document YAML files (like kubectl resource bundles): each '---' section becomes its own downloadable document.
How it works
js-yaml's loadAll parses every document in the stream; each is re-dumped individually and presented with its own download button.
- Enter your input. Type or paste your input into the field above — the tool responds instantly.
- Review the result. Output updates live as you type. Everything runs entirely in your browser.
- Copy or download. Use the Copy button to grab the result, or Download to save it as a file.
Examples
Splitting a stream
A file with several --- separated YAML documents splits into individual documents — the format of multi-doc Kubernetes and tool configs.
Common mistakes
Document markers inside block scalars
A --- line inside a literal block isn't a separator. The parser respects block scalars when splitting.
Frequently asked questions
Can I merge documents back together?
Yes — a join mode re-combines them with --- separators.
How are empty documents handled?
Empty documents are skipped unless you choose to keep them.