Camel/Snake/Kebab Case Converter
Instantly convert text or variable names between the most common programming case styles: camelCase, PascalCase, snake_case, and kebab-case.
Your Text
Converted Text
About Programming Case Styles
The Case Style Converter is a specialized tool for developers, programmers, and data scientists. Different programming languages and frameworks often have strict conventions for how variables, functions, and file names should be cased. This tool removes the friction of converting between these styles manually, helping you maintain clean, conventional, and readable code. It intelligently handles various inputs, whether they're space-separated, hyphenated, or already in a specific case style. All conversions happen securely in your browser.
How to Use the Converter
- Input Your Text: Paste or type the variable or text you want to convert.
- Select Target Style: Choose your desired output format from the dropdown menu (e.g., camelCase, snake_case).
- Convert: Click the "Convert Style" button to get the result.
- Copy: The converted text will appear on the right, ready to be copied into your code.
Case Style Definitions
- camelCase: The first word is lowercase, and the first letter of each subsequent word is capitalized. Widely used in JavaScript. (Example: `myVariableName`)
- PascalCase: The first letter of every word is capitalized. Often used for class names in object-oriented programming. (Example: `MyVariableName`)
- snake_case: All words are lowercase and separated by underscores. Common in Python and for database column names. (Example: `my_variable_name`)
- kebab-case: All words are lowercase and separated by hyphens. Often used for URL slugs and CSS class names. (Example: `my-variable-name`)
Related Tools
Word, Character & Sentence Counter
Live counts for words, characters, and sentences as you type.
Case Converter
Convert text between uppercase, lowercase, title case, and more.
Line Break & Whitespace Remover
Clean up text by removing or adding line breaks and trimming whitespace.
Find, Replace, Sort & Deduplicate
A powerful multi-tool for cleaning and manipulating text. Perform find and replace, sort lines alphabetically, or remove duplicate lines—all in one place.