Regex Matches to CSV Extractor
Run a regular expression over pasted text and export every match and each capture group as rows of a CSV, TSV or JSON table, ready for a spreadsheet.
- Free
- No sign-up
- Works on any device
About Regex Matches to CSV Extractor
Regex testers highlight matches; this tool turns them into data. Type a JavaScript regular expression and paste your text, and every match becomes a row with the full match followed by one column for each capture group. Named groups, such as (?<user>\w+), name their columns, and you can add a match number and the character position. The table can be copied as CSV, tab-separated text for a spreadsheet, or JSON as a list of objects or lists. It is built for pulling emails, order numbers, dates or log fields out of text.
How to use Regex Matches to CSV Extractor
- Type the regular expression and tick the flags you need, such as ignore case.
- Paste the text to search, or open a text file from your device.
- Pick CSV, tab-separated or JSON output, then copy or download the table.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
Also known as
Frequently asked questions
Which regular expression syntax does the tool use?
The JavaScript syntax of your browser, with the global flag always on so every match is listed. Lookbehind, named groups and Unicode property escapes work in current browsers.
What happens with a capture group that did not take part in a match?
Its cell is left empty, so every row has the same columns. Named groups use their name as the column header, and unnamed groups are called group_1, group_2 and so on.
Is there a limit on the number of matches?
The tool stops at 20,000 matches to keep the page responsive and says so in the result. Narrow the expression or split the text if you need more.
Is Regex Matches to CSV Extractor free?
Yes. Regex Matches to CSV Extractor on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.