DataToolsLab
YAML Tools

YAML Flow-to-Block Style Converter

Convert flow-style YAML collections into block style.

Loading tool…

What is Flow → Block?

A style converter that expands flow collections into block-indented YAML for readability and consistency.

How it works

The input parses with js-yaml and re-dumps with flow style disabled at every level, producing fully block-style output.

  1. Enter your input. Type or paste your input into the field above — the tool responds instantly.
  2. Review the result. Output updates live as you type. Everything runs entirely in your browser.
  3. Copy or download. Use the Copy button to grab the result, or Download to save it as a file.

Examples

Readable style

Convert compact flow-style YAML like {a: 1, b: [2, 3]} into the block style most people prefer for configs — and back again.

Common mistakes

Style is presentation, not data

Flow and block styles are equivalent — converting never changes the parsed structure, only readability.

Frequently asked questions

Does it keep comments?

Yes — comments are preserved where they attach to keys.

When is flow style useful?

For one-liners, inline defaults, and JSON-like data where block style would be verbose.

Online