Renaming variables, cleaning up a heading, or formatting a CSV column often means changing the case of text. Doing it by hand is slow and error-prone. Here is a quick guide to the common cases and when to use each.
The cases you will actually use
- UPPERCASE / lowercase: headings, constants, or normalising input.
- Title Case: headlines and titles.
- Sentence case: body copy, where only the first word is capitalised.
- camelCase: variables and function names in JavaScript, Java, and similar (
userName). - PascalCase: class and component names (
UserCard). - snake_case: variables and columns in Python, Ruby, and databases (
user_name). - kebab-case: URLs, CSS classes, and file names (
user-name). - CONSTANT_CASE: environment variables and constants (
MAX_RETRIES).
Convert in two steps
- Open the Case Converter and paste your text.
- Click the case you want and copy the result. It handles whole paragraphs as easily as a single word.
Everything happens in your browser, so nothing is uploaded.
A tip on developer cases
camelCase, snake_case, and kebab-case all describe the same words with a different separator. A good converter detects word boundaries (including existing camelCase) so you can move cleanly between them, for example turning getUserName into get_user_name or get-user-name without retyping.
Related tools
- Turning a title into a URL? Use the Slug Generator.
- Counting words or characters first? Try the Word & Character Counter.
- Cleaning up messy whitespace? The Whitespace Cleaner helps.
Case conversion is a two-second job once you stop doing it by hand. Paste, pick a case, copy.