Case Converter
Convert text between common casings: UPPER, lower, Title, snake_case, kebab-case, camelCase.
The six modes on one input
The identifier user_account-id in each mode:
UPPER USER_ACCOUNT-ID
lower user_account-id
Title User_Account-Id
snake_case user_account_id
kebab-case user-account-id
camelCase userAccountId
UPPER, lower and Title change only the letters and keep every separator. The three identifier modes split the input at spaces, underscores, hyphens and at a lower-case letter followed by an upper-case letter, then join the words again with their own separator.
Which convention where
- snake_case: Python and Ruby variables and functions, PostgreSQL and MySQL column names, most JSON APIs written in those languages.
- camelCase: JavaScript, TypeScript, Java, Swift and Kotlin variables and methods; JSON produced by those ecosystems.
- kebab-case: URL paths, CSS class names, HTML attributes, command-line flags and npm package names. It is not valid as an identifier in most languages, because the hyphen is the minus operator.
- UPPER with underscores: environment variables and constants. Convert to snake_case first, then to UPPER.
Acronyms are the usual source of surprises: parseHTTPResponse has no lower-case letter
between HTTP and Response, so a converter cannot know where the acronym ends.
Check identifiers that contain acronyms by eye after converting.
Title mode capitalises the first letter of every word, including short words such as "of" and "the". Editorial title case, which leaves those words in lower case, has to be corrected by hand.
Related tools
Monitor Case Converter automatically
Convert text between common casings: UPPER, lower, Title, snake_case, kebab-case, camelCase. NetTests can run this check on a schedule, preserve historical results, compare changes over time, and alert you the moment something breaks.
Start monitoring free → See all monitoring productsFrequently Asked Questions
When is each case convention used?
snake_case — Python variables, database column names, file names on Linux. camelCase — JavaScript variables and object properties, Java methods. PascalCase (Title Case without spaces) — class names in most languages. kebab-case — CSS class names, HTML attributes, URL slugs. UPPER_CASE — constants and environment variables.
Does the converter handle camelCase input?
Yes — when converting camelCase or PascalCase to snake/kebab, the tool detects transitions between lowercase and uppercase letters (e.g. helloWorld → hello_world). Existing separators (spaces, hyphens, underscores) are also recognised and normalised regardless of input format.