Skip to content
HexSlate

Text Tools

Count words, sort and deduplicate lines, strip whitespace and number lines. Nothing you paste ever leaves your browser.

What is in this section

8 tools for working on a list or a block of text: sorting, removing duplicates, counting words and characters, numbering lines, reversing, and stripping whitespace. They cover the jobs that are too small to write a script for and too fiddly to do by hand, like deduplicating an export before it goes into a spreadsheet, or checking whether a meta description fits in 160 characters.

Unicode is handled properly

Counting characters is simple until an emoji arrives. A flag is two code points, a family emoji can be seven, and JavaScript's String.length counts UTF-16 units rather than either. These tools count graphemes, which is what a person means by "character", and the reverse tool keeps emoji and accented letters whole instead of splitting them into pieces.