Skip to content
NMSnabbit.

Unquote String

Remove surrounding quotes from a string and unescape its contents.

Converters Runs in your browser

How do you unquote a string?

Copied strings usually arrive still wearing their quotes. This tool removes one matching outer pair, double, single or backtick, then unescapes the inside so \n and \t become real characters again. The first and last character must be the same quote mark; anything unquoted passes through untouched, which makes it safe to run over text you are not sure about.

How to use the Unquote String

  1. 1 Drop in the quoted string exactly as you copied it.
  2. 2 Matching outer quotes, double, single or backtick, are stripped.
  3. 3 Interior escapes are resolved at the same time.
  4. 4 Use the cleaned value.

What you can use it for

  • Pulling a value out of a quoted CSV cell.
  • Cleaning a copied code string back to plain text.
  • Removing the quotes a tool added around output.
  • Unescaping a single quoted field.

Frequently asked questions

What counts as a removable quote pair?
The first and last characters must be the same mark: two double quotes, two single quotes or two backticks. Mismatched ends leave the string alone.
Are inner escapes decoded too?
Yes. Backslash sequences such as \n, \r, \t and \uXXXX inside the quotes become their real characters once the wrapper comes off.
Will it touch unquoted text?
No. Input that is not wrapped in a matching pair passes through byte for byte, so running it twice does no damage.

Related tools

More Converters

More tools like this:

All Converters