Liquid Template Renderer
Render Liquid templates with variables — inline or from a remote URL.
POST
1 credit
/v1/liquid-render
curl -X POST "https://devtools.toolkitapi.io/v1/liquid-render" \
-H "Content-Type: application/json" \
-d '{
"template": "Hello {{ name }}! You have {{ count }} new messages.",
"variables": {"name": "Alice", "count": 5}
}'
import httpx
resp = httpx.post(
"https://devtools.toolkitapi.io/v1/liquid-render",
json={
"template": "Hello {{ name }}! You have {{ count }} new messages.",
"variables": {"name": "Alice", "count": 5}
},
)
print(resp.json())
const resp = await fetch("https://devtools.toolkitapi.io/v1/liquid-render", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"template": "Hello {{ name }}! You have {{ count }} new messages.",
"variables": {"name": "Alice", "count": 5}
}),
});
const data = await resp.json();
console.log(data);
# See curl example
Response
200 OK
{
"rendered": "Hello Alice! You have 5 new messages.",
"variables_used": ["name", "count"]
}
Try It Live
Live Demo
Response
Description
Render Liquid templates with variables — inline or from a remote URL.
How to Use
1
1. Pass a Liquid template string in `template`, **or** a public HTTPS URL in `template_url`. 2. Provide `variables` as a JSON object — these become the template context. 3. Optionally enable `strict` mode to catch undefined variable errors.
About This Tool
Liquid Template Renderer evaluates Liquid markup with your provided variables and returns the rendered output. Supply a template inline or fetch one from a public HTTPS URL (up to 1 MB).
Supports the full Liquid spec — variables, filters, tags (`if`, `for`, `unless`, `case`), and all standard Liquid filters (`upcase`, `date`, `split`, `join`, etc.).
Why Use This Tool
- Email templates — Preview rendered email content before sending
- Dynamic content generation — Generate HTML, Markdown, or plain text from templates
- Template validation — Test Liquid templates with sample data
- Shopify theme development — Test Liquid snippets outside Shopify
Frequently Asked Questions
What Liquid features are supported?
The full Liquid specification: output tags (`{{ }}`), logic tags (`{% if %}`, `{% for %}`, `{% unless %}`, `{% case %}`), all standard filters, and iteration helpers.
Can I fetch templates from any URL?
Only HTTPS URLs are accepted. The template must be under 1 MB. The server follows redirects but will reject non-HTTPS sources.
Start using Liquid Template Renderer now
Get your free API key and make your first request in under a minute.