Text tools
Compare two texts, change case, count words and characters, sort lines, remove duplicates and whitespace, and generate slugs or lorem ipsum.
- Text Compare: Diff by line, word or character, unified or side by side.
- Text Case Converter: camelCase, snake_case, kebab-case, Title Case and more.
- Word and Character Counter: Characters, words, lines and bytes.
- Word Frequency Counter: Which words appear most, and how often.
- Sort Lines: Sort lines alphabetically, numerically, by length or reversed.
- Duplicate Line Remover: Keep each line once.
- Whitespace Remover: Strip line breaks, extra spaces or both.
- String Reverser / Rotator: Reverse a string or rotate it by n characters.
- Slug Generator: Turn a title into a URL-safe slug.
- Lorem Ipsum Generator: Placeholder paragraphs, sentences or words.
- Find and Replace: Replace every match of plain text or a regular expression, with the matches highlighted.
- Email and URL Extractor: Pull every email address and link out of text, plus IP addresses and phone numbers on request.
- Invisible Character Detector: Reveal and remove zero-width spaces, direction controls and other hidden Unicode characters.
- Markdown Table Generator: Turn CSV, spreadsheet cells or JSON into a Markdown table, or a table back into CSV.
Which tool to use
- Find what changed: Text Compare diffs by line, word or character, unified or side by side.
- Rename an identifier: the Text Case Converter switches between camelCase, snake_case, kebab-case, Title Case and more.
- Measure a draft: the Word and Character Counter counts characters, words, lines and bytes, and the Word Frequency Counter shows which words appear most.
- Clean up a list: Sort Lines orders lines alphabetically, numerically, by length or in reverse. The Duplicate Line Remover keeps each line once, and the Whitespace Remover strips line breaks and extra spaces.
- Generate text: the Slug Generator turns a title into a URL-safe slug, and the Lorem Ipsum Generator produces placeholder paragraphs, sentences or words.
- Flip or shift a string: the String Reverser / Rotator.
- Edit in bulk: Find and Replace works with plain text or regular expressions, and the Email and URL Extractor pulls every address and link out of a block of text.
- Hidden problems: the Invisible Character Detector reveals and removes zero-width spaces, direction controls and other characters you cannot see.
- Tables: the Markdown Table Generator turns CSV, spreadsheet cells or JSON into a Markdown table, and back.
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.