Konverter
Case Converter
The Case Converter transforms text between all common letter-case styles used in programming and writing. Whether you need camelCase for JavaScript variables, snake_case for Python identifiers, or UPPER_CASE for constants, the tool handles every conversion instantly and in bulk. It eliminates tedious manual reformatting when renaming variables, slugifying titles, or standardizing naming conventions across a codebase.
What is letter case?
Letter case refers to the distinction between uppercase (capital) and lowercase letters in a writing system. In programming, naming conventions prescribe specific case styles for identifiers to improve readability and consistency within a language or framework. camelCase starts with a lowercase letter and capitalizes subsequent words (e.g. myVariableName). PascalCase capitalizes every word including the first (e.g. MyClassName). snake_case separates words with underscores in lowercase (e.g. my_variable_name). kebab-case uses hyphens (e.g. my-css-class). SCREAMING_SNAKE_CASE is snake_case in all caps, typically for constants. Title Case capitalizes the first letter of each word.
How does the converter work?
The tool first tokenizes the input by splitting on whitespace, underscores, hyphens, and camelCase word boundaries detected via regex. Each token is then reassembled in the target format. Splitting is smart: CamelCaseInput, snake_case_input, kebab-case-input, and 'plain sentence input' all tokenize to the same word list before reformatting. The conversion is non-destructive – the original text is preserved in the input field so you can try multiple target formats without re-entering the text.
Typical Use Cases
- Renaming variables or functions to match a project's naming convention
- Converting column names from a spreadsheet into valid Python or SQL identifiers
- Transforming page titles into URL slugs or CSS class names
- Standardizing constants to UPPER_SNAKE_CASE when porting code between languages
Step-by-step Guide
- Step 1: Paste or type the text you want to convert into the input field.
- Step 2: Click the button for the target case style (e.g. camelCase, snake_case).
- Step 3: The converted text appears instantly in the output field.
- Step 4: Copy the result with the copy button or convert to another style without re-entering text.
Example
Input
hello world example
Output
camelCase: helloWorldExample | PascalCase: HelloWorldExample | snake_case: hello_world_example | kebab-case: hello-world-example
Tips & Notes
- When converting an existing camelCase or PascalCase identifier, the tool automatically detects word boundaries at uppercase letters.
- For generating URL slugs, prefer kebab-case and then run the result through the Slugify tool for additional normalization.
- SCREAMING_SNAKE_CASE is the conventional style for environment variables and compile-time constants in most languages.
Frequently Asked Questions
Does the tool handle accented or non-ASCII characters?
The word boundary detection works on ASCII letters. Accented characters (e.g. é, ü) are preserved as-is within each token but are not split on. For full Unicode slug normalization, use the Slugify tool.
What is the difference between camelCase and PascalCase?
Both capitalize each subsequent word, but camelCase starts with a lowercase letter (myFunction) while PascalCase (also called UpperCamelCase) starts with an uppercase letter (MyFunction). In most languages, PascalCase is used for type names (classes, interfaces) and camelCase for variable and function names.
Case Converter
Convert text into various case styles such as camelCase, snake_case, PascalCase, kebab-case, and many more.
Open Tool