Liquid Template Formatter
Liquid formatter for Shopify, Jekyll and email-builder templates, with neat indentation for if, for, unless and other control blocks. Free and private.
Liquid Template Formatter tool
Formatting a Liquid template, step by step
- Paste your template, or press Load sample for a Shopify product loop.
- Choose an indent and press Beautify.
- Copy the output or save it as a
.liquidfile.
Made for Shopify, Jekyll and email builders
Liquid weaves control tags through HTML, and the HTML's indentation rarely reflects the tag logic. When a theme section has five levels of {% if %} and {% for %}, a missing {% endif %} is painful to track down. The formatter puts each Liquid tag on its own line and indents everything inside block tags, so every opening tag lines up with its closing tag.
These blocks get indented: if, unless, case, for, tablerow, capture, raw, comment, form, pagination, with and block. else, elsif and when step back one level, just as in a code editor.
What stays untouched
Output tags like {{ product.title | escape }} keep their filters and arguments. Tag contents are only trimmed, and whitespace-control dashes such as {%- and -}} stay exactly where you put them, since they affect the rendered output. Text and HTML between tags are kept line by line.
Minify
Minify removes {% # %} inline comments and collapses whitespace. Use it for snippets that go into a theme setting or app block with a size limit.
Liquid Template Formatter at a glance
Liquid formatter: beautify Shopify and Jekyll Liquid templates with correct indentation of for, if and unless blocks. Free, no account needed.
- Cost
- Free to use, with no account, watermark or usage cap.
- Privacy
- Processing happens on your device; nothing is sent to our servers.
- Devices
- Up-to-date Chrome, Edge, Firefox or Safari on computers, Android phones and iPhones.
- Last updated
Frequently asked questions
Which Liquid tags get indented?
The common block tags and their closing tags: for, if, unless, case, capture, tablerow, raw, comment, form, with, pagination and block.
Is my output text preserved?
Yes. Text, {{ output }} tags and {% tags %} are kept; only the whitespace around them is rearranged.
Is it free?
Yes. It is free and unlimited, with no account and nothing leaving your browser.