Smart Quotes to Straight

Paste text with “curly” quotes to get "straight" ones, or switch direction to curl straight quotes for a document or a page.

How it works

Straight means the typewriter marks " and '. The tool turns every curly double quote (“ ” „ ‟) into " and every curly single quote or apostrophe (‘ ’ ‚ ‛) into '. The prime marks ′ and ″, used for feet, inches and minutes, become ' and " too.

Curly works the other way. A quote at the start of the text, or after a space, an opening bracket or a dash, opens: “ or ‘. Any other quote closes: ” or ’. An apostrophe inside a word, as in it's, becomes ’.

A few words start with an apostrophe because letters were dropped, such as '90s, 'n', 'em, 'tis, 'twas, 'cause and 'til. Those get ’, the apostrophe, rather than an opening quote. Text that is already partly curly is straightened first, so the result is consistent.

How to use it

  1. 1 Choose the quotes you want: Straight or Curly.
  2. 2 Paste your text into the box. The converted text appears below as you type.
  3. 3 Press Copy result, or download it as a .txt file.

Good to know

  • Code copied from a blog or a word processor often breaks because its quotes were curled. Straighten it here before you paste it into a terminal or an editor.
  • CSV files and JSON need straight double quotes. A curly quote in a CSV header is a common reason a column name does not match.
  • Never curl code. print('b') becomes print(‘b’), which no programming language accepts.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Two kinds of quote mark, and when each one breaks something

There are two families of quote marks. Straight quotes, " and ', come from the typewriter, which had no room for separate opening and closing keys. Curly quotes, also called smart quotes or typographer's quotes, have a shape for each side: “ and ” for double, ‘ and ’ for single. Printed books use curly quotes. Code, data files and most command lines need straight ones. Text moves between those worlds all the time, and the wrong kind causes real failures.

The common failure goes like this. Someone writes a command in a document, and the word processor curls its quotes as they type. You copy it: curl -H “Accept: text/plain” example.com. The shell does not treat “ as a quote, so the header is split at the space and the command fails with a confusing error. Paste it here with Straight chosen and you get curl -H "Accept: text/plain" example.com, which works. The same happens with JSON, CSV headers and spreadsheet formulas.

The other direction matters for anything people read. Paste "It's done," she said. with Curly chosen and you get “It’s done,” she said. The first quote opens because it starts the text. The apostrophe in It's closes, because it follows a letter, and the closing single quote is also the correct apostrophe. The quote after the comma closes. A word such as '90s gets an apostrophe even though it follows a space, because the tool knows that a quote before two digits stands for missing digits.

Straightening is exact: every curly mark has one straight form, so nothing is guessed. Curling has to guess which way each quote faces from the character before it. That rule gets ordinary prose right, including quotes inside quotes such as “It’s ‘fine.’”, and quotes after a dash or an opening bracket.

It is wrong in some places, and it is better to know them. Feet and inches, as in 5'10", get closing quotes instead of prime marks. A word that starts with an apostrophe and is not on the tool's short list, such as 'bout, gets an opening quote. Other languages' quote styles are not kept: German „Hallo“ is straightened correctly, but curling it gives English “Hallo”, and French « » guillemets are left alone in both directions. And code should never be curled, since no programming language reads ‘ or “ as a quote.

Frequently asked questions

Why did my code stop working after I pasted it from a document?

Word processors and many websites replace straight quotes with curly ones as you type. To a programming language, “ is a different character from ", so a string that starts with one and should end with the other never closes. Choose Straight, paste the code, and copy the result back.

How does it know whether a quote opens or closes?

It looks at the character before the quote. After a space, an opening bracket, a dash or the start of the text, a quote opens. Anywhere else it closes. That is right for ordinary English prose; the limits section below covers where it is wrong.

What happens to 5'10"?

Curled, it becomes 5’10”, with quote marks where a typesetter would use the prime marks ′ and ″. If your text has many measurements, fix those by hand. Straightening turns primes back into ' and ".

Is my text uploaded?

No. The conversion runs in your browser as you type. Nothing is sent anywhere.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.