Text Formatter - Format and Clean Up Text

The Text Formatter changes the capitalization and spacing of your text in a few clicks. Paste your text, choose a formatting option, and the result appears in a separate box, so your original stays untouched. It's useful for tidying copied text, fixing inconsistent capitalization, and cleaning up extra spaces.

Formatted text will appear here

Key Features

The Text Formatter has one text field and five formatting buttons.

  • Uppercase: Converts every letter to capital letters.
  • Lowercase: Converts every letter to small letters.
  • Title Case: Capitalizes the first letter of each word and lowercases the rest of that word. Words are separated by whitespace. This is simple word capitalization, not AP, Chicago, or another professional title style. Small words such as "and" or "of" are capitalized too, acronyms like "NASA" become "Nasa", and a hyphenated word like "well-known" becomes "Well-known".
  • Sentence Case: Converts the text to lowercase, then capitalizes the first letter of the text, the first letter after a line break, and the first letter after a period, exclamation mark, or question mark followed by whitespace. Because everything is lowercased first, names, acronyms, and the word "I" may need manual correction.
  • Trim Spaces: Removes spaces and tabs at the start and end of each line, and replaces repeated spaces or tabs inside a line with a single space. Your line breaks and blank lines are kept, and leading indentation is removed.

Formatting happens only when you click a button, not while you type. The formatter runs in your browser using JavaScript, and its code doesn't upload your text to a server.

How to Use the Text Formatter

  1. Type or paste your text into the box labelled Text to format.
  2. Click one of the five buttons: Uppercase, Lowercase, Title Case, Sentence Case, or Trim Spaces.
  3. Read the formatted text in the result box. Your original text stays in the input box.
  4. To try a different style, click another button. Each button formats your current input, not the previous result.
  5. Click Copy Result to copy the text currently displayed in the result box. If you edit or clear the input after formatting, the previous result remains available until you format again, and Copy Result copies that displayed result. If the result is empty, the tool displays "Nothing to copy." If clipboard access fails, select the result text and copy it manually.

Practical Use Cases

  • Fixing all-caps or all-lowercase text: Use Sentence Case to turn a block of capitals into readable sentences, then correct names and acronyms.
  • Preparing headings and labels: Use Title Case for a quick first pass on a draft heading, then adjust small words if you follow a specific style guide.
  • Standardizing short entries: Use Uppercase or Lowercase to keep names, tags, or codes consistent in a list, or to prepare text for a field that expects one case.
  • Cleaning pasted text: Use Trim Spaces on text copied from emails, PDFs, or web pages to remove extra spaces and trailing whitespace while keeping the paragraph structure.
  • Tidying notes and drafts: Run Trim Spaces first, then Sentence Case, to clean up rough notes before sharing them.

Frequently Asked Questions

What does the Text Formatter do?

It changes the capitalization and spacing of text you enter or paste. It offers five operations: Uppercase, Lowercase, Title Case, Sentence Case, and Trim Spaces. Formatting happens when you click a button, not while you type.

What is the difference between Uppercase, Lowercase, Title Case, and Sentence Case?

Uppercase makes every letter a capital, and Lowercase makes every letter small. Title Case capitalizes the first letter of each word and lowercases the rest of that word. Sentence Case lowercases everything, then capitalizes the first letter of the text, of each new line, and of each sentence that follows a period, exclamation mark, or question mark followed by whitespace.

Does Title Case follow AP, Chicago, or other title-style rules?

No. Title Case is simple word capitalization. It treats any group of characters separated by whitespace as a word, so small words like "and" or "of" are capitalized too. Acronyms are lowercased after the first letter ("NASA" becomes "Nasa"), and a hyphenated word like "well-known" becomes "Well-known". If you follow a specific style guide, review the result and adjust it manually.

Will Sentence Case fix names and acronyms?

No. Sentence Case lowercases all the text before capitalizing sentence starts, so proper nouns, acronyms, and the word "I" may be lowercased unless they begin a sentence. Check the result and correct them by hand.

What exactly does Trim Spaces remove? Does it delete blank lines?

For each line, Trim Spaces removes leading and trailing whitespace, including indentation, and replaces runs of spaces or tabs inside the line with a single space. It also normalizes Windows-style line endings. It does not delete blank lines or remove line breaks, so your paragraph structure stays the same.

Does the Text Formatter change my original text?

No. The formatted output appears in a separate result box, and your original stays in the Text to format field. You can click a different button to format the same input another way. Each button formats the current input, not the previous result.

What does Copy Result copy if I edit my text after formatting?

Copy Result copies the text currently displayed in the result box. If you edit or clear the input after formatting, the previous result remains visible until you format again, and Copy Result copies that visible result—not the edited input. If the result is empty, the tool displays "Nothing to copy." The success message appears only after the clipboard write succeeds.

Is my text uploaded to a server?

The formatting runs in your browser using JavaScript, and the formatter code does not upload your text to a server. This applies to the formatting itself. Other parts of the page, such as advertising or analytics, work separately and aren't covered by this statement.

Why might Copy Result not work?

Copying uses your browser's Clipboard API, which can fail if clipboard access is unavailable or denied, for example because of browser settings or permissions. If that happens, select the text in the result box and copy it manually.

Related Tools