Text Formatter
TX-57Paste text and tidy its spacing, capitalize sentences or words, or switch everything to upper or lower case. Each action changes only what its name says.
Runs in your browser. Nothing is uploaded.
Text
Formatted text
How to use it
- Paste your text into the input box.
- Press Tidy spacing to fix extra spaces and spaces around punctuation, or Capitalize sentences or Capitalize words for capitals.
- Tick Lowercase the rest first if the text is in capitals or mixed case and you want clean sentence or title style.
- Press UPPER CASE or lower case for a plain case change, then copy the result.
Tidy spacing
Tidy spacing trims each line, turns runs of spaces and tabs into one space, removes spaces before , . ; : ! ? and closing brackets, removes spaces after opening brackets, and adds a space after , ; : ! ? when a letter follows. It does not add a space after a full stop, so it.it stays as typed. It is made for ordinary prose: in code, or in text such as std::string, the added space is wrong. Options can also remove empty lines and capitalize sentences in the same pass.
Capitalize sentences
The first letter of the text, and the first letter after a full stop, question mark, exclamation mark or ellipsis character plus a space, is made a capital. Each new line can also start a sentence. An abbreviation such as e.g. followed by a space triggers a capital too, and proper names are not recognised, so names written in lowercase stay lowercase. With Lowercase the rest first on, everything else is lowercased before capitalizing, which also lowercases acronyms such as NASA.
Capitalize words
The first letter of each word is made a capital, including after a hyphen, so well-known becomes Well-Known. A letter after an apostrophe or a digit is not treated as a word start, so don't becomes Don't and 3rd stays 3rd. Small words such as of and the are capitalized too, because the tool does not apply title-case style rules. UPPER CASE and lower case change every letter and nothing else.
Error messages and what to do
| Message | What it means | Fix |
|---|---|---|
Paste the text to format. | The input box is empty or holds only spaces. | Paste or type the text first. |
Questions people ask
How do I capitalize the first letter of every sentence?
Paste the text and press Capitalize sentences. The first letter of the text and of each sentence after . ! ? or an ellipsis becomes a capital. Tick Lowercase the rest first if the text is in capitals.
How do I fix spaces before commas and periods?
Press Tidy spacing. Spaces before , . ; : ! ? and closing brackets are removed, repeated spaces become one, and a space is added after , ; : ! ? when a letter follows.
How do I capitalize the first letter of every word?
Press Capitalize words. Each word start becomes a capital, including after hyphens. Tick Lowercase the rest first to turn the other letters of each word to lowercase.
Will it capitalize names and acronyms correctly?
No. It has no dictionary, so lowercase names stay lowercase, and the lowercase option also lowercases acronyms such as NASA. Check names and acronyms after formatting.
What is the difference between sentence case and title case?
Sentence case capitalizes only the first word of each sentence. Title case, here Capitalize words, capitalizes every word, including small ones such as of and the, since the tool does not skip any.
About this tool
Tidy spacing trims each line, turns runs of spaces and tabs into one space, removes spaces before , . ; : ! ? and closing brackets and after opening brackets, and adds a space after , ; : ! ? when a letter follows. It does not add a space after a full stop, so run-together sentences such as it.it stay as typed. It is meant for ordinary prose: in code or in text such as std::string the added space is wrong. Capitalize sentences uppercases the first letter after . ! ? or the ellipsis character and a space; abbreviations such as e.g. followed by a space also trigger it, and it does not know proper names. Capitalize words uppercases each word start, including after a hyphen. Without the lowercase option the other letters are left as typed. Nothing is uploaded.