About Case Converter — camelCase, snake_case, kebab
Programming languages and style guides each prefer different naming conventions: camelCase for JavaScript variables, snake_case in Python, kebab-case for CSS classes and URLs, CONSTANT_CASE for constants, and PascalCase for types. Converting between them by hand is tedious and easy to get wrong.
This free case converter transforms any text into all the common conventions at once — just pick the one you need and copy it. It splits words intelligently, recognising existing camelCase boundaries, separators, and runs of capitals from acronyms, so identifiers like `getHTTPResponse` convert cleanly. It runs entirely in your browser.
Features
- Convert to camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE
- Also Title Case, Sentence case, and dot.case
- Smart word splitting handles existing camelCase and separators
- All conversions shown at once, each copyable; fully offline
How to use
- Type or paste your text — words, an identifier, or a phrase.
- See every naming convention rendered at once.
- Copy the case you need with its copy button.
Frequently asked questions
How does it split words?
It detects camelCase boundaries (getUserId → get, user, id) and common separators (spaces, hyphens, underscores, dots), then lowercases each word before rebuilding it in the target case.
When should I use each case?
camelCase for JS/Java variables, PascalCase for classes/types, snake_case for Python and database columns, kebab-case for URLs and CSS, and CONSTANT_CASE for constants.
How do I convert camelCase to snake_case?
Paste your camelCase identifier and read off the snake_case row. The converter detects the capital-letter boundaries (firstName → first, name) and joins the lowercased words with underscores, giving you first_name. PascalCase and kebab-case inputs convert the same way.
What is the difference between PascalCase and camelCase?
Both join words with no separators and capitalise each word, but PascalCase also capitalises the first letter (UserProfile) while camelCase leaves it lowercase (userProfile). PascalCase is conventional for classes and types; camelCase for variables and functions.
Is my text uploaded?
No. The conversion is pure string manipulation that runs entirely in your browser.
Related tools
Everything runs locally in your browser — your input is never uploaded.