Case Converter
Convert text to different letter and naming cases.
What is a text case converter?
A case converter rewrites text so its letters follow a different capitalization pattern, without changing the words themselves. It's useful for cleaning up pasted text, matching a style guide, or turning a plain phrase into a variable name a programming language will accept. Everything here runs in your browser, so your text is never uploaded or stored anywhere.
Supported case styles
- UPPERCASE — every letter capitalized.
hello world→HELLO WORLD - lowercase — every letter in lowercase.
Hello World→hello world - Title Case — the first letter of each word capitalized, as used in headings and titles.
hello world→Hello World - Sentence case — only the first letter of each sentence capitalized.
hello world. it works.→Hello world. It works. - camelCase — words joined with no spaces, each word after the first capitalized, commonly used for variable names in JavaScript and Java.
hello world→helloWorld - PascalCase — like camelCase, but the first word is also capitalized, often used for class and component names.
hello world→HelloWorld - snake_case — words joined with underscores, common in Python and database column names.
hello world→hello_world - kebab-case — words joined with hyphens, common in URLs and CSS class names.
hello world→hello-world - CONSTANT_CASE — uppercase words joined with underscores, typically used for constants.
hello world→HELLO_WORLD - dot.case — words joined with periods, sometimes used for config keys and namespaces.
hello world→hello.world - path/case — words joined with forward slashes, resembling a file path.
hello world→hello/world - aLtErNaTiNg CaSe — letters alternate between lowercase and uppercase, often used to convey sarcasm online.
hello world→hElLo WoRlD - InVeRsE CaSe — every letter's case is flipped from the original.
Hello World→hELLO wORLD
How to use this tool
- Type or paste your text into the box.
- Pick a case style from the buttons on the right.
- Your text updates instantly — use "Undo" to step back one change, or "Copy" to grab the result.
Frequently asked questions
Does this tool store or upload my text?
No. The conversion happens entirely in your browser using JavaScript, so your text never leaves your device.
Can I convert text back to how it was?
Yes. The "Undo" button restores your text to the state it was in before your last conversion.
What's the difference between camelCase and PascalCase?
Both remove spaces and capitalize word boundaries. camelCase
keeps the very first letter lowercase (myVariableName),
while PascalCase capitalizes it too (MyClassName).
Why would I need snake_case or kebab-case?
snake_case is a common naming convention for variables and database fields in languages like Python, while kebab-case is standard for URL slugs and CSS class names, where underscores and capital letters aren't used.