When to Use Smart Quotes

Curly quotes, straight quotes and primes, and how to type each one.

There are times when the copy on a site looks a little off and you can’t put your finger on why. A lot of the time it’s the quotes. You may be tempted to use the straight quotes " and ' because there’s a key for them right on your keyboard and they’re easy to type. They show up all over the web for that reason, but most of the time you should be using the curly quotes “ ” and ‘ ’.

Smart quotes are the curly (or sloped) quotation marks and apostrophes used in real typography. Straight quotes are a leftover from the typewriter.

Typewriters only had room for one key, so a single straight mark had to do the job of both the opening and closing quote. Our keyboards copied that, and a lot of apps and CMSs still default to it. Jason Santa Maria made Smart Quotes for Smart People back in 2013 as a quick reference for this, and it’s the page I send people to.

When to Use Smart Quotes

Use smart quotes in any text people read: articles, headings, buttons, error messages and marketing copy.

  • “ opens a double quote and ” closes it
  • ‘ opens a single quote and ’ closes it
  • ’ is also the apostrophe, as in don’t and Pam’s

The apostrophe trips people up. It’s always the closing single quote, even at the start of a word. That means it’s ’90s and rock ’n’ roll, not ‘90s. Autocorrect gets this wrong a lot because it sees a mark at the start of a word and assumes it’s an opening quote.

When to Use Straight Quotes

Use straight quotes in code. JavaScript, HTML attributes and JSON all need them, and curly quotes pasted into code will break it:

const message = "Hello" // works
const message = “Hello” // SyntaxError

This is also why you should be careful copying code out of a blog post or slide deck that has “fixed” the quotes for you. Outside of code, straight quotes shouldn’t really show up in your design or your writing.

When to Use Primes

Feet, inches, minutes and seconds aren’t quotes at all. They use primes, which look like slanted straight marks:

  • ′ (prime) for feet, minutes and arcminutes
  • ″ (double prime) for inches and seconds

So it’s 6′4″, not 6'4", and definitely not 6’4”.

How to Type Smart Quotes

On a Mac:

  • ‘ is Option + ]
  • ’ is Option + Shift + ]
  • “ is Option + [
  • ” is Option + Shift + [

On Windows, hold Alt and type the code on the number pad:

  • ‘ is Alt + 0145
  • ’ is Alt + 0146
  • “ is Alt + 0147
  • ” is Alt + 0148

Smart Quotes in HTML

If your page uses UTF-8 (and it should), you can type or paste the characters straight into your HTML:

<meta charset="utf-8" />
<p>“Don’t forget your umbrella,” she said.</p>

If you can’t, use the HTML entities instead:

<p>&ldquo;Don&rsquo;t forget your umbrella,&rdquo; she said.</p>
  • &lsquo; or &#8216; for ‘
  • &rsquo; or &#8217; for ’
  • &ldquo; or &#8220; for “
  • &rdquo; or &#8221; for ”

The same entities work in the text of a React component, since JSX supports HTML entities too.

Note: These rules are for English. Other languages use different quotation marks, like « » in French, so check before translating your copy.

Have some feedback on this post? .