Text

Text Cleaner & Case Converter

Trim extra spaces, remove duplicate lines, and convert text to UPPERCASE, Title Case, camelCase, snake_case, and more — free, no sign-up required

Clean text

Convert case

100% free No sign-up Runs in your browser No data stored

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

1

Paste your text

Type or paste the text you want to clean up

2

Pick a clean-up or case action

Click a whitespace/duplicate-line button, or a case conversion

3

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.


Frequently Asked Questions (FAQ)

What's the difference between camelCase, snake_case, and kebab-case?
camelCase runs words together with each subsequent word capitalized (helloWorld) — common for JavaScript variable names. snake_case separates words with underscores (hello_world) — common in Python and database column names. kebab-case separates words with hyphens (hello-world) — common for filenames and URLs.
What can this tool clean up?
It trims extra spaces (collapsing repeated spaces and trimming line edges), removes blank lines, removes duplicate lines, and joins every line into one. Handy for cleaning up text copied from elsewhere that came with extra spaces or lines.
Does converting case overwrite the previous result, or always convert from the original?
It always converts from the original text you entered, never from a previous result. So if you click UPPERCASE and then click camelCase, the camelCase result comes from your original text, not from the already-uppercased version.
Does this work correctly with non-Latin text?
Yes — the whitespace/blank-line/duplicate-line cleanup functions work the same regardless of script. Case conversion (UPPERCASE/lowercase/etc.) only affects Latin letters, since scripts like Thai have no concept of uppercase and lowercase.
Is the text I type sent to a server?
No data ever leaves your device. All text processing runs entirely in your browser.

Related tools