How to Type an Apostrophe on a Phone Keyboard

Find the apostrophe on iPhone and Android keyboards, choose between straight (') and curly (’) apostrophes, and check which one actually ended up in your text.

Most phone keyboards hide the apostrophe one layer below the letters, which is why it can seem to be missing. This guide shows where to find it on the common iPhone and Android keyboards, how to choose between the two apostrophe characters, and how to confirm which one you typed.

What the apostrophe key actually inserts

Phone keyboards can produce two different characters that both look like an apostrophe. Most people never need to care which one they get. It matters when the text goes somewhere that compares characters exactly, such as a password field, a username, a search query, a spreadsheet formula or a line of code.

Name | Example | Unicode code point | Typical use
Straight (typewriter) apostrophe | don't | U+0027 APOSTROPHE | Code, passwords, command lines, data files
Curly (typographic) apostrophe | don’t | U+2019 RIGHT SINGLE QUOTATION MARK | Published prose, messages, documents

Some keyboards insert the straight character and then convert it to the curly one as you type. On iPhone, this conversion is controlled by a setting called Smart Punctuation. To a person reading, the two characters mean the same thing. To software, they are different characters, so don't and don’t will not match each other in an exact search or a password check.

Before you start

  • Know which keyboard app you are using. The iPhone keyboard, Gboard and Samsung Keyboard each place punctuation a little differently, and third-party keyboards vary further.
  • Decide whether the destination needs a straight apostrophe. Ordinary messages and documents accept either one. Code, passwords and exact-match fields usually need the straight one.
  • Expect menu names and key labels to differ slightly between operating system versions, phone manufacturers and keyboard languages. The steps below describe the usual layouts. They have not been checked against every version.

iPhone and iPad (built-in keyboard)

  • 1. Tap the 123 key at the bottom left to switch from letters to numbers and punctuation.
  • 2. Find the apostrophe in the punctuation row, usually the bottom row of that layer.
  • 3. Tap it to insert the default apostrophe. Most layouts then switch back to letters automatically.
  • 4. For a specific variant, touch and hold the apostrophe key. A small menu opens with alternative characters, typically including the straight and curly forms. Slide to the one you want and lift your finger.

To control automatic curly apostrophes, open Settings, go to General, then Keyboard, and find Smart Punctuation. With it on, the keyboard usually inserts curly apostrophes and quotes. With it off, it inserts straight ones. Turn it off before typing code or passwords, and turn it back on afterwards if you prefer typographic punctuation in everyday writing.

Android with Gboard

  • 1. Tap the ?123 key at the bottom left to open the symbols layer.
  • 2. Tap the apostrophe in the punctuation rows.
  • 3. On many layouts, a faster option is to touch and hold the period key next to the space bar. A pop-up of common punctuation appears, and you can slide to the apostrophe without leaving the letter layer.
  • 4. If you need a curly apostrophe, touch and hold the apostrophe key on the symbols layer. Alternative quote marks are often available there. The exact set depends on the keyboard language.

Android with Samsung Keyboard

  • 1. Tap the symbols key (often labeled !#1) to switch to the symbols layer.
  • 2. Tap the apostrophe on the first symbols page. If it isn't there, use the page arrow (for example 1/2) to see the next page.
  • 3. Depending on your settings, touching and holding the period key may also show a punctuation pop-up that includes the apostrophe.
  • 4. To find curly variants, touch and hold the apostrophe key and check whether alternatives appear.

The shortcut you may not need: autocorrect

On many keyboards with autocorrect enabled, typing a common contraction without the apostrophe gets it added for you. For example, typing dont followed by a space often becomes don't or don’t. This is convenient for prose, but autocorrect can also insert an apostrophe where you didn't want one. Words like ill, were and its are real words without an apostrophe, and autocorrect may change them to I'll, we're or it's. Reread these words before sending. If autocorrect makes an unwanted change right after you type it, tapping the backspace key immediately often restores your original word.

Before-and-after example

Illustrative example, not tested output from a specific device. Suppose you type the same sentence twice on an iPhone, once with Smart Punctuation on and once with it off:

Smart Punctuation on:   It’s Sam’s phone.   (apostrophes are U+2019)
Smart Punctuation off:  It's Sam's phone.   (apostrophes are U+0027)

Both lines read the same. Only the second contains the straight apostrophe that most programming languages, command shells and password systems expect.

How to check which apostrophe you typed

  • Look closely. The curly apostrophe usually looks like a small raised comma (’). The straight one is a short vertical tick ('). Some fonts make the two hard to tell apart, so don't rely on appearance alone when it matters.
  • Use a character inspector. Paste the text into a Unicode character lookup or text inspection tool. It should report U+0027 for the straight apostrophe and U+2019 for the curly one.
  • Test an exact search. In an app with find, search for the apostrophe you intended. If a word you can see doesn't match, it probably contains the other character.

Fixing apostrophes after the fact

If text already contains the wrong apostrophe, you don't have to retype it. Most text editors and many processing tools can replace one character with the other. Work on a copy first. A blanket replacement also changes curly single quotation marks used as quotes (‘like this’), and that may not be what you want.

Illustrative example of a find-and-replace that converts curly apostrophes and single quotes to straight ones. This uses a regular expression, a pattern syntax that most editors with a regex option support. Exact syntax for Unicode escapes varies by tool. Some accept \u2019, others need \x{2019}, and others want you to paste the character itself.

Find (regex):   [\u2018\u2019]
Replace with:   '

Before:  Don’t touch Sam’s ‘spare’ phone.
After:   Don't touch Sam's 'spare' phone.

After replacing, run the character check above on a few changed words to confirm the result. If the replacement went wrong, undo it in the editor, or restore from the copy you kept. On iPhone, the undo gesture (a three-finger swipe left, or shaking the device if Shake to Undo is enabled) can reverse recent typing in many apps.

Known gaps

No device-specific documentation was available while preparing this guide. Key positions, long-press menus and setting names are described from the common default layouts and may differ on your phone. This is especially likely with older operating system versions, manufacturer-customized Android keyboards, third-party keyboard apps or non-English keyboard languages. If a step doesn't match what you see, check your keyboard's settings for punctuation, long-press or smart quote options.