Extract Text Between Characters
Get the text between, before, or after a character from every line.
Extract Text
What does this tool do?
This tool extracts the text between two characters, or before/after a character, from every line at once. Useful for pulling values out of codes, brackets, and delimited fields. Runs in your browser.
How to use Extract Text Between Characters - Free Online Tool
- Paste your text, or click "Try with sample data".
- Choose a mode: between two characters, before a character, or after a character.
- Enter the character(s) or delimiter.
- Click Extract and copy the result.
Example
Extracting text inside brackets:
Before
| Text |
| Order (A123) shipped |
| Order (B456) pending |
After
| Result |
| A123 |
| B456 |
The text between ( and ) is extracted.
Excel formula alternative
Prefer a formula? You can achieve a similar result with MID + FIND:
=MID(A2, FIND("(",A2)+1, FIND(")",A2)-FIND("(",A2)-1)
This Excel formula is fiddly. This tool does before/after/between in one click.