Text Formatter
Change case, trim spaces, sort lines, clean up pasted text.
Counts
0 words
Paste or type text, then pick a change below. Undo goes back up to 20 steps.
How this works
Paste or type text, then tap a change. Each one rewrites the whole text in place, and Undo steps back through the last 20 changes (Ctrl or Command + Z does too, until you type again). The counts update as you go.
Title Case capitalizes every word except short ones like a, an, the, and, of, in and to, which stay lowercase unless they come first, last or after a colon. Words with capitals inside, like iPhone or NASA, are left as they are. camelCase, snake_case and kebab-case split words at spaces, punctuation and capitals, line by line.
Join lines turns each paragraph into one line; paragraphs stay apart where there is a blank line. Tabs become spaces at stops every 4 columns. Sorting puts blank lines last, and Sort 1, 2, 10 reads numbers as numbers, so file2 comes before file10. Remove duplicates keeps the first of each line and ignores spaces at the ends; turn on Match case to treat Apple and apple as different. Number adds 1., 2., 3. to lines that are not blank.
Remove accents turns letters like é, ñ, ø and ß into e, n, o and ss, in any Latin, Greek or Cyrillic text, and leaves other scripts alone. Strip HTML keeps the text, puts line breaks where paragraphs and list items end, and turns entities like & into the characters they stand for.
Find and replace changes every match. With Regex on, the pattern is a JavaScript regular expression: ^ and $ match at each line, and the replacement can use $1 or $<name> for groups and \n for a new line.
Words are counted between spaces (Chinese, Japanese and Thai are split into words by the browser), sentences by their ending . ! or ?, and paragraphs by blank lines. Reading time is at 200 words a minute. Nothing you paste is saved unless you turn on Remember last input (up to 500,000 characters); turning it off deletes the saved copy.
Saved on this device only. Nothing is sent anywhere.