Gather lines into groups that share a prefix or a leading field.
Runs entirely in your browser.
Group Lines by a Common Prefix
- Input
- Output
- Group by: Separator: Characters: Show group sizes
About Group Lines
Lines are gathered under whatever they have in common at the start - everything before a separator, or the first few characters. Groups appear in the order they were first seen, with their members in the original order.
Good for sorting a flat list into sections: hostnames by region, files by extension, IDs by their prefix.
Other Text and List Tools
Text
- Censor Words
- Extract Email Addresses
- Extract a Substring
- Find Hidden Characters
- Add Quotes to Text
- Repeat Text
- Truncate Text
- Reverse Text
- Rotate Text
- Randomize Case
- Text to Unicode
- Palindrome Checker
- Create a Palindrome
Lines and lists
- Join Lines
- Split Text
- Wrap Each Line
- Unwrap Lines
- Find Most Common Lines
- Rotate Lines
- Truncate a List
- Sort Lines
- Remove Duplicate Lines