Clean text
Convert case
Text copied from a webpage, a Word document, or a chat often comes with extra spaces, duplicate blank lines, or the wrong case for what you need. This text cleaner and case converter fixes these problems in a single click: trim extra spaces, remove blank lines, remove duplicate lines, and join multiple lines into one. It can also convert between 7 case styles — UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case, and kebab-case — handy for developers converting variable names between conventions, or anyone tidying up text before using it for real. Everything runs in your browser; no text ever leaves your device.
How to use the text cleaner
Paste your text
Type or paste the text you want to clean up
Pick a clean-up or case action
Click a whitespace/duplicate-line button, or a case conversion
Copy the result
Use the cleaned-up text right away
Why use this tool
4 clean-up actions
Extra spaces, blank lines, duplicate lines, and joining lines
7 case styles
UPPERCASE, camelCase, snake_case, and more, all in one place
Always converts from the original
Every button converts your original text, not the last result
Example use cases
Tidying up text copied from a PDF or Word doc
Copied text often comes with extra spaces and scattered blank lines — clean it up before using it further.
Converting variable names across naming conventions
Developers convert camelCase to snake_case or kebab-case when porting code between languages that use different conventions.
Removing duplicate lines from a list
A list of names or URLs with repeated entries — strip it down to one occurrence of each.
Converting a heading to Title Case
Format an article heading or email subject line so every word starts with a capital letter, following the standard convention.