Free online smart quotes tool

Straight quotes to curly quotes converter, plus nine more typography rules

Paste your text. Pick a locale. The real engine runs in your browser and nothing you type is sent anywhere.

Runs in your browser. Nothing you paste is sent anywhere.

The call the form above is making, right now

How the conversion works

Pick the locale you are writing in and polytypo sets that locale’s own quotation marks, not one universal pair: the same straight quotes come out differently in en-US, en-GB and de-DE. It reads each apostrophe and each quote in context, so It's gets a proper apostrophe and a nested 'quiet' inside double quotes gets the right inner pair. Dashes, ellipses and no-break spaces are set in the same pass.

en-US

In: She said, "It's a 'quiet' place" - and left...

Out: She said, “It’s a ‘quiet’ place”—and left…

en-GB

In: She said, "It's a 'quiet' place" - and left...

Out: She said, ‘It’s a “quiet” place’ – and left…

de-DE

In: She said, "It's a 'quiet' place" - and left...

Out: She said, „It’s a ‚quiet‘ place“ – and left…

de-DE, curly input

In: “Hi” it’s

Out: „Hi“ it’s

Curly quotes you paste in are not turned back into straight ones. Text that is already curly is set to the selected locale’s marks, as the last example shows. The text, html, markdown and yaml modes cover plain text, web pages, Markdown and the prose values of YAML files. The quotes rule documents every locale’s pairs, and the runtime pages show how to install polytypo for JavaScript and TypeScript, Python, Go, Ruby and PHP.

What to know before you paste

None of the options fall back to a default

A wrong or missing value throws its own error with a machine-readable code, rather than guessing what you meant.

Idempotent

Paste the output back into the input and nothing should change.

YAML values and colons

In yaml mode, a value written plainly cannot contain :  — YAML itself reads that as a nested mapping, and a document with one does not parse at all. polytypo declines such a line rather than rewrite text it could not read back, so it returns untouched even when its key is named in keys. Quote the value, or write it as a block scalar with |. A quoted value may contain colons freely, but not an escape (\" or ''): that would make the source and the content different strings, and the offsets this mode works in are source offsets.

Size

No hard size limit on transform() — ordinary prose runs at roughly 250K characters per second, so even a full novel pasted in typesets in a couple of seconds. Pathological input (long runs of alternating quote or dash characters with no real content between them) is measurably slower, since a couple of rules re-check their own output to guarantee idempotency — real text never has that shape, so this only matters if you're piping in machine-generated or adversarial input.

Questions about the converter

How do I convert straight quotes to curly quotes in Word or plain text?

Paste the text into the box above, pick the locale you are writing in, and copy the result. Straight double and single quotes become that locale’s opening and closing marks, apostrophes become ’, and the same pass sets dashes, ellipses and no-break spaces. The box holds plain text, so bold, italics and other formatting do not come back with the result; for a formatted document, run the HTML or Markdown source through the matching mode instead, or paste the converted paragraphs back and reapply the formatting.

Does it work on HTML and Markdown?

Yes. The html mode changes only the text between tags and leaves tags, attributes and code, script and style content alone. The markdown mode changes only prose and leaves code spans, code blocks and URLs untouched; it needs a dialect, commonmark or mdx. The yaml mode changes only the values of the keys you name. The text mode treats everything you paste as prose.

Is my text sent anywhere?

No. The conversion runs in your browser with the same engine you can install from npm, and the text you paste is not uploaded. The page records that the tool was used, together with the locale and mode you picked, but never the text itself.

Already using polytypo? Add our badge

Two lines: a script tag and a span. No per-embed network call. Pick a language and a theme, then copy the code into your footer or credits. Embedding notes cover Content Security Policy. Sites with the badge are listed on Sites using polytypo.

<script async src="https://polytypo.dev/badge.js"></script>
<span data-polytypo-lang="en" data-polytypo-theme="light"></span>

Search runs in your browser. Nothing is sent anywhere.