Text sorter
Sort lines alphabetically or numerically, in either direction.
Text & writingTest JavaScript regular expressions with matches, offsets and capture groups.
Ready when you are.
Indices are zero-based JavaScript string positions. This example finds an email-like string; it is not comprehensive email validation.
Text: [email protected] Pattern: [\w.+-]+@[\w.-]+\.[a-zA-Z]{2,} Flags: gi
1 match: [email protected], starting at index 0
Enter a pattern without slash delimiters, flags and sample text. Matching runs in a time-limited worker.
Uses the JavaScript regex engine. PCRE-specific syntax is not supported; expensive expressions are stopped after one second.
Some patterns have excessive backtracking. The test runs in a worker and stops after one second. Try fewer nested quantifiers or shorter input; results are capped at 1,000 matches.
No. This tool processes your input in your browser. We don't store your text, files or results. Standard website access logs are separate; read our privacy notes.
Yes. No account, subscription or usage credits are required.
Use Copy or Download after running the tool. Inputs are not saved automatically and disappear when you leave or refresh the page.
Something not right? Report a problem with this tool. Include the steps, but never passwords or private input.
Sort lines alphabetically or numerically, in either direction.
Text & writingClean up a list by removing repeated lines, with optional case matching.
Text & writingFormat, validate and minify JSON without rounding large numbers. Explore a read-only tree, find text and download locally.
Developer tools