Text tools

Compare two texts, change case, count words and characters, sort lines, remove duplicates and whitespace, and generate slugs or lorem ipsum.

Which tool to use

Characters, bytes and words

A length limit can mean characters or bytes, and the two differ outside plain English. In UTF-8 the letter e is one byte, é is two and most emoji are four. Database columns and network protocols usually count bytes, while a tweet or a meta description counts characters.

Word counts depend on spaces, so they are reliable for languages that separate words with them and approximate for Chinese, Japanese and Thai.

Frequently asked questions

How do I compare two pieces of text online?
Paste the original on one side of Text Compare and the changed version on the other. Additions and removals are highlighted, by line, word or character.
What is the difference between characters and bytes?
A character is one symbol as a reader sees it. A byte is a unit of storage. In UTF-8 a character takes between one and four bytes, so a text with accents or emoji has more bytes than characters.
How do I remove duplicate lines from a list?
Paste the list into the Duplicate Line Remover and each distinct line is kept once. Sorting first is not required.
What is a URL slug?
It is the readable part of a URL that identifies a page, such as my-first-post. Slugs are lower case, use hyphens instead of spaces and drop punctuation and accents.