YAML Minifier

Minify YAML with this free tool, shrinking a document into compact flow style without changing its data.

Runs in your browser — nothing is uploaded

Nothing is uploaded. Counting happens on your device.

Drop a .txt file here Tap to choose a .txt file

or browse your device — you can also paste (Ctrl+V)

Your camera and gallery open from the file picker

One file at a time. Files over 200 MB may be too large for browser processing.

    Your result will appear here.

    Free, no account, no sign-up. Nothing is uploaded. Everything runs on your device.

    Minify YAML with this free tool, shrinking a document into compact flow style without changing its data. It parses the YAML first and then reprints it with collections written inline — mappings as {key: value} and lists as [1, 2] — so the result is the same data in far less space. That makes it useful for pasting configuration into a size-limited field or embedding it in code. Paste your YAML into the box and click Convert to get the compact result, which you can copy or download. If the input is not valid YAML, the tool reports the parser's error instead of guessing, naming the problem so you can fix the input and try again. It minifies only: it does not sort keys, remove duplicate keys, or change any values. Anchors and aliases are resolved during parsing, so shared values may be spelled out in the output. Everything runs in your browser, so your text never leaves your device.

    How to use YAML Minifier

    1. Paste your text type, paste (Ctrl+V) or drop a .txt file into the box above.
    2. Click Convert the tool runs entirely in your browser — nothing is uploaded.
    3. Read your results they appear below the tool as soon as the conversion finishes.
    4. Download the result save it for your records.
    5. Convert another clear the box and paste new text — no sign-up, no limits.

    Format facts

    InputAny plain text, or a .txt file (dropped or browsed).
    EngineBuilt-in browser engine
    CategoryDeveloper Tools

    Limits

    • Browser processing has practical limits: files over 200 MB (or very long media) may be too large for your device. You will get an honest “too large” message, never a fake result.
    • Pasted content is handled as plain text — formatting from documents is not preserved.

    Frequently asked questions

    Will minifying change my data?

    No. The YAML is parsed and reprinted in compact flow style with the same values. Keys stay in their original order.

    Why is the output all on one line?

    Flow style writes mappings as {key: value} and lists as [1, 2], which takes far less space than block style.

    What happens with invalid YAML?

    The tool reports the parser's error instead of guessing, so you can fix the input and try again.

    Does my text get uploaded anywhere?

    No. The conversion runs entirely in your browser on your own device, so your text never leaves the page and is never stored or shared.