Quoted String Extractor
Extract quoted strings from code or text, quotes stripped.
Extractors Runs in your browser
What is a string extractor?
Drop in source code and get back the contents of every quoted literal, both “double” and ‘single’ styles, without the quotes themselves. Escapes inside a literal are decoded, so a stored \n comes out as a real line break and \" as a bare quote. Results are de-duplicated, which makes it useful for pulling UI strings out of a component for translation.
How to use the String Extractor
- 1 Paste source code or config text that contains quoted literals.
- 2 Single- and double-quoted strings are pulled out with their quotes removed.
- 3 Escape sequences such as \n are decoded to real characters.
- 4 Copy the de-duplicated strings.
What you can use it for
- Pulling user-facing strings out of source for translation.
- Extracting message literals from a config or script.
- Collecting quoted values from a log line.
- Finding hard-coded strings in a code snippet.
Frequently asked questions
Which quoting styles are recognised?
Double-quoted and single-quoted literals both count, and an escaped quote inside a string, written as backslash-quote, does not end the match early.
Do I get the raw literal or the decoded value?
The decoded value. \n, \t and \\ inside the literal become an actual newline, tab and backslash, matching what your program would see at runtime.
Are template literals with backticks supported?
Not currently. Backtick strings and their ${} interpolations are left in place; convert them to ordinary quotes if you need their contents extracted.
Related tools
More Extractors
More tools like this:
All Extractors