Text Formatter
Clean up messy pasted text — fix spacing, punctuation and capitalization instantly. Your data never leaves your browser.
Input
Output
How text formatting works
Text pasted from chat apps, PDFs or scanned documents often carries messy spacing, missing capitals and stray punctuation. This tool applies four independent, toggleable fixes in a fixed order — normalize whitespace, fix punctuation spacing, capitalize sentences, then collapse extra blank lines — so you can see exactly what each one changes:
// Before the meeting starts at 9am .please bring your laptop,and charger.dr. patel will lead the session... see you there! // After The meeting starts at 9am. Please bring your laptop, and charger. dr. patel will lead the session... See you there!
Notice "dr. patel" keeps its lowercase "d" — the capitalization heuristic checks a small list of common abbreviations (Mr., Dr., vs., etc., e.g., i.e.) and deliberately skips forcing a capital right after one, since real sentence-boundary detection is a much harder problem than a client-side formatter can solve. It's a heuristic, not a guarantee: a numbered item like "Item 1. next point" has the same ambiguity, since "1." isn't a real abbreviation but isn't a sentence end either.
Frequently asked questions
Is it safe to paste sensitive text here?
Yes. All processing happens in your browser using native JavaScript; no text is ever sent to a server.
Will it capitalize after every abbreviation like "Mr." or "etc."?
No. It checks the word before the period against a small list of common abbreviations (Mr., Dr., vs., etc., e.g., i.e. and a few more) and skips forcing a capital letter after those. It's a heuristic, not full sentence-boundary detection, so unusual abbreviations may still get capitalized.
Does it break decimal numbers, times or ellipses?
No. A period between two digits (3.14), a colon between digits (12:30) and a comma between digits (1,000) are left untouched, and a run of punctuation like an ellipsis (...) or "?!" is treated as one unit instead of being split apart.
Can I turn off individual fixes?
Yes. Capitalization, punctuation spacing, whitespace normalization and blank-line collapsing are four independent toggles above the panels, all enabled by default.