The curly quotes in Jinja are whatever literal characters you type into a template or pass into it as data—Jinja itself does not convert straight quotes (" and ') into typographic quotes (“ ” and ‘ ’), and it has no built-in filter for doing so. Jinja's delimiters and expression syntax use plain ASCII quotation marks and curly braces, such as {{ value }} and {% if x == "y" %}, so if you are editing a template and cannot find any curly quotes, the likely explanation is that none exist by default: they only appear when they are part of the actual text being rendered.

That short answer covers most of what this search tends to mean, but the question can point in a few different directions, and it is worth separating them because each has a different resolution. Some readers are looking at HTML or documentation where prose contains “smart quotes” and wondering which characters Jinja will treat as string delimiters. Others are writing content that needs curly quotes in the output—for example, an article, a résumé template, or a localized UI string—and want to know how to get them reliably. Others still have hit an error because a curly quote snuck into an expression and is being treated as literal text rather than syntax. The sections below address all three, in the order the confusion usually arises.

What the question is really asking

The phrase “around quotes from Jinja where are the curly” is compressed enough that it can mean two or three things. The most literal reading is a location question: given some Jinja template or generated HTML, where do curly quotation marks come from? A second reading is a syntax question: does Jinja recognize curly quotes as string delimiters, and if not, what happens when they appear inside an expression? A third is an output-formatting question: how do you make Jinja emit typographic quotes?

These are distinct because Jinja plays two separate roles. It is a templating language with its own lexical rules about what counts as a string literal, a comment, a block, or raw text. And it is a text generator whose output is whatever the template and the data produce. Curly quotes live in the second role—the output—almost exclusively. They are essentially never part of the first role, because Jinja's grammar is defined in terms of ASCII punctuation.

Once you see that split, the question “where are the curly quotes” has a clear shape: they are in your content, not in Jinja's syntax. Everything else follows from that.

Jinja's syntax uses straight ASCII quotes only

Jinja's string literals are written with single or double straight quotation marks. Both of these are valid and equivalent:

You can use one kind to wrap a string containing the other, which is a common convenience:

The important point is that the characters ' (U+0027 apostrophe) and " (U+0022 quotation mark) are the delimiters. Typographic characters are different code points: ‘ and ’ are U+2018 and U+2019, and “ and ” are U+201C and U+201D. Jinja's tokenizer does not treat any of those four as string delimiters. They are ordinary characters with no special meaning to the template engine.

The same is true of every other piece of Jinja syntax. Expression delimiters are {{ and }}; statement delimiters are {% and %}; comments are {# and #}. The default line-statement prefix is #. None of these involve curly quotation marks, and none of the punctuation involved is typographic.

What happens if a curly quote lands inside an expression

Here is the practical consequence, and it is the source of a common error. Suppose a template contains:

That is valid Jinja. Now suppose someone “prettified” the file in a word processor, and the straight quotes were replaced with curly ones:

Jinja will not read “name” as a string. The curly characters are not delimiters, so the expression no longer parses as a subscript with a string key. Depending on where the curly quote sits, you will typically get a template syntax error, often reported with a location inside the expression, or—worse—a confusing error about an unexpected character. The error message will point at the expression, but the root cause is invisible whitespace-like punctuation: the quotes look correct on screen and are wrong at the byte level.

This is a real hazard because it happens silently during editing. Copying template code out of a design document, a chat message, or a word processor can convert straight quotes to curly ones through “smart quotes” autocorrect. The template then breaks even though it looks identical in a proportional font. The fix is to retype the quotes or replace them with ASCII equivalents, and to disable smart-quote substitution in whatever tool is producing the file.

Where curly quotes actually come from in rendered output

If curly quotes are not Jinja syntax, they must be content. There are three ordinary sources.

Literal characters in the template. If the template file itself contains the characters “ and ”, they are copied to the output verbatim, because they are just text outside of any Jinja tags. This is the simplest case, and it is indistinguishable from any other literal text such as letters or spaces:

The curly quotes here are part of the HTML; Jinja does not touch them.

Characters supplied through variables. A value passed into the template from Python, a database, or a JSON file can contain curly quotes, and Jinja will render them as-is:

If greeting is “Welcome,” she said., the curly quotes appear in the output. Jinja does not transform them, and by default it does not escape them either—autoescaping in Jinja escapes HTML-significant characters like <, >, &, ", and ', but it is not a Unicode “smart quote” filter.

Text produced by filters or macros. A filter or macro can of course construct a string containing curly quotes and return it, in which case those characters flow into the output like any other string.

What is absent from this list is any automatic conversion step inside Jinja. The engine's job is to evaluate expressions and substitute them into a template. It does not normalize punctuation, and it does not have a built-in smartquotes filter. That means there is no hidden setting that turns straight quotes into curly ones, and no “curly quote mode” you have to find. If the output has curly quotes, the input had them.

How to produce curly quotes deliberately

Since Jinja will not create typographic quotes on its own, you have two clean options: put the curly characters directly in the template or data, or run the text through a smart-quotes processor before it reaches the template. Both are legitimate, and the choice depends on where the text originates.

Put them in the data

This is usually the right approach when the text is authored content—articles, marketing copy, translated strings. Authors and translation tools already work with typographic quotes, so the curly characters arrive as data and Jinja passes them through untouched. There is nothing to configure. The one caveat is encoding: templates and data should be UTF-8, which is the default expectation for Jinja environments. If a file is saved in a legacy encoding, curly quotes can be mangled into mojibake, a problem to fix at the file/encoding level rather than in the template.

Use a Python filter registered with the environment

Jinja lets you add custom filters to an environment. If you want a smartquotes filter, you implement it in Python—typically with a library or a small transformation—and register it:

Then in the template:

The filter runs in Python, not in Jinja, and the template just calls it. This is the pattern to use when the conversion must happen at render time—for example, when the same source text is rendered to HTML and to plain text with different typographic rules. A naive text.replace('"', '“') is wrong because it turns every double quote into an opening quote; determining opening versus closing requires context, and mature smart-quotes libraries handle that.

The important distinction is that this conversion is something your code does, not something Jinja does. The engine provides the hook (custom filters); you provide the behavior.

Convert at the source instead

If the text is static, converting it once during authoring or during a build step is often simpler and avoids an extra filter at render time. The result is that curly quotes are literal content, as in the first source above. For a site with a build pipeline, a one-time normalization step in the content pipeline is easy to audit. The trade-off is that if the source text changes, the conversion must run again—which is why some teams prefer the filter, so the rule lives in code alongside the template.

The escaping wrinkle

One subtlety is worth calling out because it trips people up when they inspect rendered HTML. If Jinja autoescaping is on, the straight double quote " inside a value is escaped to ", but the curly quotes “ and ” are not escaped, because they have no special meaning in HTML. So you can see output in which straight quotes appear as entities while curly quotes appear literally. That is not Jinja treating the two differently as delimiters—it is HTML escaping doing its job on the characters HTML cares about. The curly quotes were always literal characters; the straight quotes were the ones with syntactic significance in HTML attribute contexts.

The same logic explains why ' in text may render as an ASCII apostrophe while ’ renders as itself: they are different characters. If you want the typographic apostrophe in output, it must be in the input.

Why the confusion is so common

Three conditions combine to make this question show up.

First, templates sit inside other languages. A Jinja template usually generates HTML, XML, JSON, or plain text, and those target languages have their own quoting rules. A reader sees curly quotes in the rendered HTML and reasonably wonders whether the template engine is responsible. It is not; the HTML is.

Second, word processors and chat clients silently convert quotes. Smart-quotes autocorrect is on by default in many editors, so a straight quote pasted into a design spec becomes curly, and when the spec is copied back into a template the syntax breaks. The characters look nearly identical in most fonts, especially at small sizes, which makes this a frustrating class of bug.

Third, the terminology is loose. People say “curly quotes,” “smart quotes,” “typographic quotes,” and “angled quotes” for the same characters, and they sometimes call the braces {{ }} “curly brackets” or “curly braces.” That last usage occasionally causes genuine confusion: someone searching for “curly” in Jinja documentation lands on the braces, not on quotation marks. It is worth being explicit that the braces and the quotation marks are unrelated features. The braces are Jinja's expression delimiters; the quotation marks are just characters, and the curly ones are only ever content.

Practical checklist

If your template throws a syntax error near a string, check whether the quotes around the string are curly. Replacing them with straight " or ' usually fixes it immediately. If you want curly quotes in the output, put them in the template text or in the data, and make sure everything is UTF-8. Do not look for a Jinja setting; there is none. If conversion must happen at render time, register a custom filter that performs smart-quote conversion in Python and call it in the template. Keep the conversion logic out of the template language itself. If you only see curly quotes in HTML output, remember that they are literal characters that autoescaping leaves alone, while straight quotes and & are escaped because HTML treats them specially. If you are copying template code from a document, disable smart-quote autocorrect first. It is the single most common way curly quotes end up where straight quotes belong.

The short version is that Jinja has no opinion about curly quotes. It recognizes straight ASCII quotes as string delimiters, uses {{ }} and {% %} for its own syntax, and otherwise treats every character—curly or straight—as text to be passed through. If curly quotes are present in a rendered page, they came from the content; if they are present in an expression and the template fails, they are the bug.