Text Tools

Case & Space Cleaner

Change case and clean up whitespace.

Case
Spaces

What is this tool?

Change the case of English letters or clean up extra spaces, line-edge spaces and blank lines in one click — handy for tidying documents, code and posts.

How to use it

Paste your text and press a button to transform it in place. Chain multiple transforms, then use Copy. Everything runs in your browser.

What each button does
  • UPPER / lower: all English letters to upper or lower case.
  • Title Case: capitalize the first letter of every word.
  • Sentence: capitalize the first letter of each sentence.
  • Squeeze / Trim / Strip / Drop blank lines: whitespace clean-up options.
Five programming case styles — when to use which

Naming conventions for variables, functions, and constants in code generally fall into five styles, each with its own conventional use.

StyleFormTypical use
camelCasefirst word lowercase, later words capitalized, no separatorVariable/function names (JavaScript, Java, etc.)
PascalCaseevery word capitalized, no separatorClass/component/type names
snake_caselowercase, words joined with underscoreVariable/function names (Python), database columns
kebab-caselowercase, words joined with hyphenURL slugs, CSS class names, HTML attributes
CONSTANT_CASEuppercase, words joined with underscoreConstants that never change (e.g. MAX_RETRY_COUNT)

This tool provides general English case conversion and whitespace clean-up — it doesn't include dedicated automatic conversion between these five naming styles. Use the UPPER/lower/Title Case buttons in combination as a partial aid for cleaning up naming.

Language conventions — why projects differ

Even for the same kind of code, different language communities prefer different naming styles. JavaScript, Java, and C# ecosystems have settled on camelCase for variables/functions and PascalCase for classes as their standard style guides, while Python and Ruby communities' official guides (like PEP 8) recommend snake_case for variables and functions. Web front-ends commonly use kebab-case for URLs and CSS class names, since hyphens aren't treated as special characters in URLs or CSS selectors and read cleanly. In projects mixing multiple languages (e.g. a Python backend with a JavaScript frontend), each side typically follows its own convention, with a defined rule for auto-converting naming style at the API boundary where data crosses over.

Careful with batch conversion — handling acronyms

One thing to watch closely when batch-converting naming styles is how acronyms are handled. For a name containing "URL," converting to camelCase could produce either userURL or userUrl depending on the style guide. Google's JavaScript style guide recommends treating acronyms like ordinary words with only the first letter capitalized (userUrl), while some codebases keep acronyms fully capitalized (userURL). If an automated tool's rule doesn't match your project's convention, you can end up with unintended changes like "ID" becoming "Id" or "HTML" becoming "Html" — so it's safer to separately review any names containing acronyms after a batch conversion.

Does it change Korean to upper/lower case?
Korean has no letter case, so case conversion applies to English letters only. Whitespace clean-up works on any text.
Title Case vs Sentence case?
Title Case capitalizes the first letter of every word (Hello World); Sentence case capitalizes only the first letter of each sentence (Hello world. Nice to meet you.).
What does the whitespace clean-up do?
Squeeze collapses repeated spaces to one, Trim lines removes leading/trailing spaces per line, Strip all removes every space and line break, and Drop blank lines removes empty lines.
Is my text sent to a server?
No. Everything runs in your browser; your text is never uploaded or stored.