Toolsel

Case Converter

Runs in your browser

Convert text between UPPERCASE, lowercase, Title Case, camelCase and more.

Text

UPPERCASE

lowercase

Title Case

Sentence case

Code

camelCase

PascalCase

snake_case

kebab-case

CONSTANT_CASE

What is a Case Converter?

Convert text between common developer naming conventions — camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE — plus everyday text casing like UPPERCASE, Title Case and Sentence case.

Every programming style guide picks a naming convention, and they rarely match: JavaScript variables are camelCase, Python and Rust use snake_case, classes across most languages use PascalCase, CSS classes and URLs favour kebab-case, and environment variables are CONSTANT_CASE. Converting a name between conventions by hand is fiddly and easy to get wrong at the word boundaries.

This tool splits input on whatever it can find — spaces, hyphens, underscores, or camelCase humps — into individual words first, then rejoins them in the target style. That means it converts in every direction: paste snake_case and get camelCase, or paste a plain sentence and get any of the nine styles at once.

Developers reach for this most often when a name has to cross a boundary: porting a variable from a snake_case Python API into camelCase JavaScript, normalising a database or JSON field name to match a language's convention, aligning a copy-pasted identifier with the rest of a codebase, or turning a class name into the kebab-case form used for a file or URL.

Which case should I use?

StyleExampleCommon use
camelCaseuserProfileJavaScript/TypeScript variables and functions
PascalCaseUserProfileClasses, components, and types
snake_caseuser_profilePython/data/API contexts
kebab-caseuser-profileURLs, CSS, and file naming
CONSTANT_CASEUSER_PROFILEConstants

How to use it

  1. Type or paste your text — plain words, camelCase, snake_case, or any mix.
  2. Every conversion generates at once: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE.
  3. Copy whichever one you need with the button beside it.

Example

Converting a variable name

Input
user_profile_settings
Output
camelCase: userProfileSettings
PascalCase: UserProfileSettings
snake_case: user_profile_settings
kebab-case: user-profile-settings
CONSTANT_CASE: USER_PROFILE_SETTINGS

Frequently asked questions

How does the converter know where one word ends and the next begins?
It splits on spaces, hyphens and underscores directly, and additionally detects camelCase and PascalCase humps — the boundary between a lowercase letter and the following uppercase one — plus transitions between letters and digits. That combination handles input in any of the common styles without needing to know which one you're starting from.
What is the difference between Title Case and Sentence case?
Title Case capitalises the first letter of every word: "The Quick Brown Fox". Sentence case capitalises only the first letter of each sentence, the way normal prose is written: "The quick brown fox jumps over the lazy dog. It runs fast."
Why does camelCase keep the first word lowercase but PascalCase doesn't?
That's the entire distinction between the two conventions — camelCase always starts with a lowercase letter (userProfile), while PascalCase capitalises every word including the first (UserProfile). PascalCase is the standard for class and type names in most languages; camelCase is standard for variables and functions.
Does this handle acronyms well?
Reasonably — a name like "userID" splits at the letter-to-uppercase-run boundary, so it converts sensibly in most cases. Acronym handling is one of the few genuinely ambiguous spots in case conversion generally (should "XMLParser" become "xml-parser" or "x-m-l-parser"?); this tool takes the common convention of treating a run of capitals as one unit.