Live Jinja2 template playground
Write a template. Add your data. See what it becomes.
Use an object (JSON) or mapping (YAML). Choose the format that matches your data.
The rendered result will appear here.
Ready to render
{{ variable }}
{{ items | join(", ") }}
{% if condition %} … {% else %} … {% endif %}
{% for item in items %} … {% endfor %}
{{ name | default("—") }}
{# a comment #}
Undefined variables raise errors here (StrictUndefined) — use default() to provide fallbacks.
default()
Templates and values are sent to this server for rendering. Avoid entering secrets or sensitive data. Output is displayed as text, not executed HTML.
Jinja Parser needs JavaScript to render templates. Please enable it and reload.