Text
Case converter
Type or paste a text and read it in 11 cases at once, from UPPERCASE and Title Case to camelCase, snake_case and kebab-case. Each version has its own Copy button.
UPPERCASE
—
lowercase
—
Title Case
—
Sentence
—
camelCase
—
PascalCase
—
snake_case
—
kebab-case
—
CONSTANT_CASE
—
dot.case
—
aLtErNaTiNg
—
How to use this tool
Type or paste your text. The eleven versions appear side by side and update as you type; press Copy next to the one you need. Four are for prose: UPPERCASE, lowercase, Title Case (a capital on each word) and Sentence (a capital at the start and after each full stop, question mark or exclamation mark). Six are for code: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and dot.case. For these the text is cut into words at spaces, hyphens, underscores and dots, and at each step from a lowercase letter to a capital, so userProfileId becomes user_profile_id. Accents are removed in the code formats. The last one, aLtErNaTiNg, switches case on every character. Sentence case puts everything in lowercase first, so proper nouns need fixing by hand.
Concrete examples
- "Hello World" → hello_world, hello-world, HELLO_WORLD, hello.world
- "my variable name" → myVariableName (camelCase), MyVariableName (PascalCase)
- "userProfileId" → user_profile_id (snake_case), user-profile-id (kebab-case)
- "Crème brûlée" → creme_brulee in snake_case, CRÈME BRÛLÉE in UPPERCASE
- "hello world. second sentence here" → "Hello world. Second sentence here" (Sentence)
Frequently asked questions
- What is the difference between camelCase and PascalCase?
- Both join the words without spaces and mark each new word with a capital. camelCase leaves the first word in lowercase (myVariableName), PascalCase capitalizes it too (MyVariableName). By convention camelCase names variables and functions in JavaScript and Java, PascalCase names classes and types.
- When should I use snake_case, kebab-case or CONSTANT_CASE?
- snake_case joins lowercase words with underscores and is the norm for Python names and SQL columns. kebab-case uses hyphens and suits URLs and CSS class names. CONSTANT_CASE is snake_case in capitals, used for constants and environment variables such as MAX_RETRY_COUNT.
- How does the tool split my text into words?
- For the six code formats it cuts at spaces, hyphens, underscores and dots, and wherever a lowercase letter or a digit is followed by a capital. "Order-ID 42" gives orderId42 in camelCase. Other punctuation stays attached to its word, and a run of capitals such as HTTPServer is kept as one word, so check acronyms.
- Does it work with accented letters?
- UPPERCASE, lowercase, Title Case and Sentence keep accents: "élève" becomes "ÉLÈVE", and "crème brûlée" becomes "Crème Brûlée" in Title Case. The six code formats strip them, so "Crème brûlée" gives creme_brulee. An apostrophe stays inside its word: "don't" gives "Don't".