Quotes in Text: How to Use Them in a Sentence and Convert Smart and Straight Quotes
A practical guide to quotes in text: how to punctuate a sentence in quotes, the difference between smart and straight quotes, and how conversion tools change your text.
Quotation marks do two jobs in text. In writing, they show where quoted words begin and end. At the character level, they are specific symbols that software reads and changes. A quote that looks right in a document can break a line of code, and a straight quote pasted into a polished article can look out of place. This guide covers how quotes are used in a sentence under common US conventions, how smart quotes differ from straight quotes, and what a quote-conversion tool does to your text.
Straight quotes and smart quotes
Straight quotes, also called typewriter or dumb quotes, are the vertical marks on a standard keyboard. A single straight character serves as both the opening and the closing mark. Smart quotes, also called curly or typographer’s quotes, come in separate opening and closing forms that curve toward the quoted text. Many word processors turn straight quotes into smart quotes automatically as you type. Plain-text editors and code editors usually leave them straight.
| Character | Name | Unicode code point | Typical use |
| " | Quotation mark (straight double) | U+0022 | Code, data formats, plain text |
| ' | Apostrophe (straight single) | U+0027 | Code, plain text, sometimes apostrophes |
| “ | Left double quotation mark | U+201C | Opens a quotation in typeset text |
| ” | Right double quotation mark | U+201D | Closes a quotation in typeset text |
| ‘ | Left single quotation mark | U+2018 | Opens a quote nested inside another quote |
| ’ | Right single quotation mark | U+2019 | Closes a nested quote; also the typographic apostrophe |
In typeset text, the typographic apostrophe is the same character as the right single quotation mark (U+2019). Conversion tools have to account for this, because a mark that looks like a closing single quote may actually be part of a word, as in don’t.
How to use quotes in a sentence (US conventions)
- Direct speech or quoted words: enclose the exact words in double quotes. Example: She said, “We leave at noon.”
- Quotes within quotes: use single quotes for the inner quotation. Example: He told me, “She said ‘noon,’ not ‘night.’”
- Titles of short works, such as articles, songs, chapters and poems: use double quotes. Longer works are usually set in italics.
- Words referred to as words, or terms used in an unusual or ironic sense: double quotes are common, though some style guides prefer italics for words as words.
- Periods and commas: in American style, these go inside the closing quote even when they are not part of the quoted material. Example: The sign read “Closed.”
- Colons and semicolons: these go outside the closing quote. Example: He called it “temporary”; it lasted a decade.
- Question marks and exclamation points: these go inside if they belong to the quotation and outside if they belong to the whole sentence. Examples: She asked, “Are you ready?” compared with Did she really say “never”?
British usage often puts periods and commas outside the quotes unless they belong to the quoted material, and it often uses single quotes as the outer mark. If you follow a specific style guide, check its rules. The conventions above are the general US pattern.
What a quote-conversion tool does to your text
A smart and straight quote tool takes text as input and swaps one set of quotation characters for the other. It does not change your words, spacing or other punctuation. The scope depends on the direction you choose.
- Straight to smart (curling): each straight quote becomes an opening or closing curly mark. The tool decides which one by looking at the surrounding characters. A quote at the start of the text or after a space is usually treated as opening. A quote after a letter or punctuation mark is usually treated as closing. A straight apostrophe inside a word becomes ’ (U+2019). The result suits published articles, books and other typeset text.
- Smart to straight (straightening): every curly double quote becomes " and every curly single quote or apostrophe becomes '. The result suits source code, JSON, CSV, shell commands, configuration files and any system that expects plain ASCII punctuation.
The two directions are not exact opposites. Straightening always discards the difference between opening and closing marks. Curling has to guess, and its guesses can be wrong in a few predictable places.
Cases where automatic curling commonly goes wrong
- Leading apostrophes: in abbreviations such as ’90s or ’tis, the mark comes after a space, so a simple rule may produce an opening quote (‘90s) when the correct character is the apostrophe (’90s).
- Measurements: in 5'10", the marks stand for feet and inches. Curly quotes are wrong here. The proper characters are the prime (′, U+2032) and double prime (″, U+2033), or straight quotes in plain text.
- Quotes next to brackets or dashes: a quote that follows an opening parenthesis or an em dash may get the wrong direction, depending on the tool’s rules.
- Code, file paths and markup inside prose: curling these can make them invalid if someone copies them out later.
Illustrative before and after
The sample below is an example written for this guide. It shows the intended result of correct curling. It was not produced by any particular tool, and real output may differ, especially in the cases listed above.
Input (straight quotes):
She said, "It's the '90s remix of 'Night Train.'" He's 5'10".
Intended output (smart quotes, measurement left straight):
She said, “It’s the ’90s remix of ‘Night Train.’” He’s 5'10".
The reverse case shows why straightening matters for code. A command or data value copied from a word processor may contain curly quotes that the program cannot parse.
Breaks in most shells and parsers (curly quotes):
echo “hello”
{“name”: “Ada”}
Works (straight quotes):
echo "hello"
{"name": "Ada"}
Step by step: converting quotes without unwanted changes
- Decide where the text will end up. Typeset prose usually takes smart quotes. Code, data and plain-text systems usually need straight quotes.
- Set aside anything that must stay exactly as written, such as code snippets, URLs, file paths, measurements and quoted data values. Convert only the prose around them, or check these spots by hand afterward.
- Run the conversion in one direction only.
- Search the result for the problem spots: leading apostrophes (’90s, ’em), feet and inches, and quotes beside brackets or dashes.
- Check that every opening quote has a matching closing quote and that nested quotes alternate between double and single.
- If the text goes to a program, search for “ ” ‘ ’ to confirm none remain. If it goes to print, search for " and ' to confirm only the intended ones are left.
Quotation marks in other languages
The rules above follow American English. Other languages use different marks. Russian and French use guillemets (« »). Russian typography commonly uses „ “ for quotes nested inside guillemets. German often uses „ “ as its primary pair. A tool built for English may not produce these marks, so if you are writing in another language, check whether the tool supports that language’s conventions before converting.
What this guide does not cover
No documentation or test results for a specific quote-conversion tool were available for this guide. The behavior described here is the general pattern for such tools, not the confirmed behavior of any particular product. Tools differ in how they handle apostrophes, primes, code blocks and non-English quotation marks. Check the documentation of the tool you use, and test it on a sample that includes the tricky cases above before you convert important text.