Case Converter
Instantly convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, Sentence case, UPPERCASE, and lowercase. Copy any result with one click.
About This Tool
Changing the capitalization style of text is a surprisingly frequent task — renaming variables, cleaning up imported data, formatting headings, or converting between the naming conventions of different programming languages. Doing it by hand is tedious and error-prone; this converter does it instantly across nine styles.
The common cases and where they are used
- **camelCase** — variables and functions in JavaScript, Java, and many languages: `getUserName` - **PascalCase** — class and type names: `UserProfile` - **snake_case** — Python variables, database columns: `user_name` - **kebab-case** — CSS classes, URL slugs, file names: `main-content` - **CONSTANT_CASE** — constants and environment variables: `MAX_RETRIES` - **Title Case / Sentence case** — headings and prose
How the splitting works
The hardest part of case conversion is figuring out where the words are. This tool splits on transitions from lowercase to uppercase (so `getUserName` becomes get / User / Name), on underscores and hyphens, and on spaces. It then re-joins the words in whichever style you copy. That means you can convert *from* any style *to* any other, not just from plain text.
Why it matters for clean code
Consistent naming is one of the cheapest ways to make a codebase readable. Mixing conventions — a `snake_case` column mapped to a `camelCase` field — is a common source of bugs at data boundaries. A quick converter keeps everything consistent when you are wiring APIs, databases, and UI together.
Everything runs locally in your browser as you type; nothing is uploaded.
Frequently Asked Questions
Related Tools
Last updated: July 29, 2026