FREE TOOL

Liquid Email Preview

Preview and test your Liquid email templates. Paste your personalized email content, see all the conditional variations extracted automatically, and toggle between different subscriber values to see exactly what each person will receive.
Liquid syntax error:
No personalization detected. Add or blocks.

Liquid Template

Saved Templates
Save Template

Email Preview

Select a few variables below and see how your template changes.
Test Variables

Complete Liquid Template Reference

Master email personalization with this comprehensive guide to Liquid templating syntax. Click any example to add it to your template above.

Variables & Output

Output dynamic content using double curly braces. Variables can be simple values or nested objects.

Basic variable output
With default fallback value
Nested object properties

String Filters

Transform text with filters. Chain multiple filters together using the pipe (|) character.

Change case
Truncate text
Replace text
Strip whitespace & HTML
Append & Prepend
Split string into array

Number Filters

Format numbers for currency, percentages, and mathematical operations.

Math operations
Rounding
Absolute value & Modulo

Conditional Logic (if/elsif/else)

Show different content based on subscriber data. This is the core of email personalization.

Simple if/else
Multiple conditions with elsif
Check if value exists
Unless (inverse of if)

Comparison Operators

Compare values in your conditionals using these operators.

Equality & Inequality
Greater/Less than
Contains (for strings & arrays)
Blank check

Logical Operators (and/or)

Combine multiple conditions for complex personalization logic.

AND - Both conditions must be true
OR - Either condition can be true
Complex combinations

Case/When Statements

A cleaner alternative to multiple elsif statements when comparing against many values.

Switch-style conditions
Multiple values per when

Variables: Assign & Capture

Create reusable variables and capture blocks of content for later use.

Assign a simple value
Assign from another variable
Capture blocks of content

Loops (for)

Iterate over arrays to display lists of items, products, or any repeated content.

Basic for loop
Loop with limit and offset
Loop variables (forloop)
Empty state with else

Array Filters

Manipulate arrays to get first/last items, sort, filter, and more.

First, Last, Size
Join arrays into string
Sort, Reverse, Uniq
Map (extract property from objects)
Where (filter objects)

Date Filters

Format dates and times for personalized, timely content.

Format dates
Common date formats
Date Format Codes Reference
%Y - 4-digit year (2024)
%y - 2-digit year (24)
%B - Full month (January)
%b - Short month (Jan)
%m - Month number (01-12)
%d - Day of month (01-31)
%A - Full weekday (Monday)
%a - Short weekday (Mon)
%H - Hour 24h (00-23)
%I - Hour 12h (01-12)
%M - Minutes (00-59)
%p - AM/PM

Whitespace Control

Control extra whitespace and newlines in your output using hyphens in your tags.

Strip whitespace with hyphens
Tip:

Real-World Email Examples

Complete, ready-to-use email personalization templates.

Welcome email with role-based content
Abandoned cart with product list
Re-engagement based on last activity