Text case converter
Convert text between camelCase, snake_case, kebab-case, Title Case and seven other cases, entirely in your browser.
Converted text
camelCase result
-
How it works
A text case converter splits your input into words, wherever it finds a space, hyphen, underscore, dot or a lowercase-to-uppercase boundary like camelCase, then rejoins the words in the case format you pick.
- Paste your text
A sentence, a variable name, or anything with mixed delimiters.
- Pick a case
The result updates instantly and stays live while you keep typing.
- Copy the result
One click copies the converted text to your clipboard.
When to use each case
Case conversion is a routine task when bridging coding conventions between systems.
- camelCase: JavaScript and Java variable and function names, and most JSON API fields.
- PascalCase: class and component names in TypeScript, C# and React.
- snake_case: Python variables and functions, and many database column names.
- kebab-case: CSS class names, HTML attributes and URL slugs.
- CONSTANT_CASE: constants and environment variable names.
A note on acronyms
A run of capital letters inside camelCase or PascalCase, such as the HTTP in "parseHTTPResponse" or the ID in "userID", is treated as a single word rather than splitting into individual letters, so those convert to snake_case as "parse_http_response" and "user_id".
Nothing leaves your device
All conversions run locally in your browser using JavaScript string manipulation. No data is sent anywhere, so it is safe to use with internal variable names, database columns or other proprietary identifiers.
Frequently asked questions
How do I convert a variable name from snake_case to camelCase?
Paste your snake_case text into the input area and click camelCase. The converter splits the input on underscores, hyphens, dots or camelCase boundaries, lowercases every word, then capitalizes every word after the first. The result appears in the result panel and can be copied with one click.
What text case formats does this converter support?
Ten case formats: camelCase (helloWorld), PascalCase (HelloWorld), snake_case (hello_world), kebab-case (hello-world), CONSTANT_CASE (HELLO_WORLD), dot.case (hello.world), Title Case (Hello World), Sentence case (Hello world), UPPER CASE and lower case. Click a button to convert the current text to that case.
Does the text case converter work correctly on existing camelCase or PascalCase input?
Yes. The word-splitting logic recognizes camelCase and PascalCase boundaries as well as delimiter characters, so "myVariableName" converts to snake_case as "my_variable_name". A run of capital letters, such as the acronym in "parseHTTPResponse", is treated as one word rather than splitting into individual letters, converting to "parse_http_response".
Is the text case conversion done on a server?
No. All conversions run locally in your browser using JavaScript string manipulation. No data is sent anywhere, making this safe to use with internal variable names, database column names or other proprietary identifiers.
When would a developer need to convert between text cases?
Case conversion comes up daily when bridging conventions: JSON APIs typically use camelCase, Python code uses snake_case, CSS classes use kebab-case, database columns often use snake_case or CONSTANT_CASE for constants, and TypeScript classes use PascalCase. This tool saves retyping when moving an identifier from one system to another.