Utility

Text Formatter

Dealing with text copied from PDFs, emails, or web pages that's full of weird spacing, broken line breaks, or inconsistent capitalization? The Text Formatter tool cleans up messy text in seconds. It offers a suite of transformations including removing extra spaces, normalizing or stripping line breaks, and converting between text cases — UPPER CASE, lower case, Title Case, and Sentence case. Simply paste your text, choose an operation, and get clean, professionally formatted output. You can chain multiple operations together using the Swap button, making it easy to apply several fixes in sequence without retyping.

Input
Output

When should you use it?

  • check_circle Cleaning up text copied from PDF documents that contains broken line breaks and extra spaces
  • check_circle Converting headings or titles to proper Title Case for blog posts and articles
  • check_circle Normalizing line endings when moving text between Windows and Mac systems
  • check_circle Preparing clean plain text from web page content that includes formatting artifacts
  • check_circle Standardizing capitalization in lists of names, addresses, or product titles for databases

How it works

Each formatting operation applies a specific text transformation using well-established string processing techniques. The 'Remove extra spaces' operation uses a regular expression to collapse consecutive whitespace characters (spaces, tabs) into a single space, then trims any leading or trailing whitespace from each line. This is particularly useful for text copied from formatted documents or HTML.

Case conversion operations process the text character by character. Title Case capitalizes the first letter of every word, while Sentence Case identifies sentence boundaries (using period, exclamation mark, or question mark followed by whitespace) and capitalizes only the first letter after each boundary. These operations handle edge cases like multiple spaces and mixed punctuation gracefully.

Line break normalization standardizes the different line ending formats that exist across operating systems — Windows uses \r\n, macOS uses \n, and older Mac systems used \r. The normalizer converts all variants to a consistent format, preventing display issues when moving text between platforms.

Frequently Asked Questions

info

How to use

Paste your text, choose an action, and see the cleaned-up result instantly.

Use Swap to chain multiple operations.

  • check_circle Remove extra whitespace
  • check_circle Normalize or remove line breaks
  • check_circle Case conversions (UPPER, lower, Title, Sentence)