Case Converter
Convert text to camel, snake, kebab, title, sentence, upper, and more. Paste your text, pick a case, and copy the converted output.
Enter the Details
WITHOUT punctuations
KEEP punctuations
RESULT:
What this does
So you have some text and you need it in a particular case, maybe for a variable name, a file slug, a heading, or just to fix something that came in shouting. This converts it for you. Paste your text, click the case you want, and the rebuilt version appears on the right ready to copy. One box of text, a dozen ways to reshape it.
How to use it
- Type or paste your text into the box on the left.
- Click the button for the case you want, and the result fills the panel on the right.
- Press Copy to take the converted text, or Clear to empty everything.
You can click straight from one case to another to compare them, and the whole thing runs on your own device.
Every case, with examples
The quickest way to understand the options is to see one phrase put through all of them. Here is what Hello World Example becomes under each case.
| Case | Result |
|---|---|
| camelCase | helloWorldExample |
| PascalCase | HelloWorldExample |
| snake_case | hello_world_example |
| kebab-case | hello-world-example |
| CONSTANT_CASE | HELLO_WORLD_EXAMPLE |
| dot.case | hello.world.example |
| path/case | hello/world/example |
| UPPER CASE | HELLO WORLD EXAMPLE |
| lower case | hello world example |
| Sentence case | Hello world example |
| Title Case | Hello World Example |
The first seven are the ones programmers reach for, the styles used to name variables, files, constants, and paths. The last four are the everyday writing styles. Between them they cover almost anything you would want to do to the shape of your words.
The two groups of buttons
You will notice the buttons are split into two sets, and the difference is punctuation. The first set, labelled without punctuation, strips out commas, full stops, apostrophes, and the like before it converts. That is exactly what you want for the programmer styles, since a variable or a file name has no business carrying punctuation. So it's a test, really turns into itsATestReally in camelCase, clean and code-safe.
The second set, labelled keep punctuation, leaves your punctuation exactly where it is and only changes the letter casing. This is the one for ordinary writing, when you want to switch a sentence to upper, lower, sentence, or title case without losing the commas and apostrophes that hold it together. Pick the group that matches whether you are shaping code or shaping prose.
A note on Title Case
One honest heads up about Title Case. This tool capitalises the first letter of every word, full stop. The formal style guides you see in publishing usually keep little joining words like a, of, and the in lower case unless they start the title. This tool does not make that distinction, so all words get a capital. For headings, button labels, and quick jobs it is exactly what you want. If you need strict publishing-house title case, give the result a once-over and lower the minor words by hand.
Questions people ask
What is the difference between camelCase and PascalCase?
Both join the words together with each new word capitalised. The only difference is the very first letter: camelCase starts lower, like helloWorld, while PascalCase starts upper, like HelloWorld.
Which case should I use for a web address or slug?
kebab-case is the usual choice for that, since words joined by hyphens read well in a link and are friendly for search. snake_case with underscores is the common pick for file names and database fields.
Why did my commas and apostrophes disappear?
You used a button from the without punctuation group, which strips those out before converting. Use the matching button in the keep punctuation group to hold on to them.
Can I try several cases on the same text?
Yes. Your input stays in the box, so you can click through different cases one after another and watch each result appear, then copy whichever one you settle on.
Sarayu is an Assistant Lecturer at Herald College, currently studying Masters of Engineering at KU. She is a Software engineer and educator who enjoys writing, and publishes essays and articles. She helps to review word/text utilities for clarity and usability.