Split Text with Regex
Split text into parts using any separator written as a regex, and output one part per line or a JSON array.
Loading tool...
Runs in your browser. Nothing is sent anywhere.
When to use it
Great for a list pasted from Zalo, email or Excel that is separated inconsistently by commas, semicolons and line breaks, when you need clean lines or a JSON array to work with.
The g flag is ignored when splitting, so you do not need it. If your regex has capturing groups ( ), the captured separators are inserted into the result; use (?: ) when you only want grouping without keeping them.
How to use
- Type the separator regex.
- Paste the text, and choose whether to trim spaces and drop empty parts.
- Click Copy or Download file.
Frequently asked questions
Is the data I paste sent to a server?
No. The tool runs in JavaScript right in your browser, and Takikit has no server that receives data. You can turn off your internet after opening the page and the tool will still work.
Related tools
More Developer tools
Regex EscapeAdd a backslash before . * + ? ( ) [ ] so you can match a string literally in a regex.URL ParserBreak a URL into protocol, domain, port, path, parameters and hash, and decode accented text.Regex LibraryReady-made regex patterns for Vietnamese phone numbers, ID cards, tax IDs, emails, license plates, dates and more, which you can test right away.URL CleanerRemove fbclid, gclid, utm_ and other tracking parameters from links before sharing, for many links at once.Remove UTM ParametersStrip only the utm_ parameters from a URL and keep all the other parameters.JWT GeneratorSign a JSON Web Token with HS256, HS384 or HS512 from your own payload to test an API during development.
See all developer tools