Text Case Converter
Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, and more — instantly, in your browser.
Runs in your browser — nothing uploaded
Input
lowercase
all letters lower
hello world — make this any caseUPPERCASE
all letters upper
HELLO WORLD — MAKE THIS ANY CASETitle Case
Capitalize Main Words
Hello World — Make This Any CaseSentence case
First word and sentence starts.
Hello world — make this any casecamelCase
firstWord lowercase, rest CapCase
helloWorld—MakeThisAnyCasePascalCase
EveryWordCapitalized
HelloWorld—MakeThisAnyCasesnake_case
lowercase_with_underscores
hello_world_—_make_this_any_casekebab-case
lowercase-with-dashes
hello-world-—-make-this-any-caseCONSTANT_CASE
UPPERCASE_WITH_UNDERSCORES
HELLO_WORLD_—_MAKE_THIS_ANY_CASEdot.case
lowercase.with.dots
hello.world.—.make.this.any.caseUse this free text case converter to flip between every common casing style in one place — perfect for renaming variables, writing slugs, normalising spreadsheet columns, or polishing headlines. Convert any input to camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, Sentence case, and more.
Private by design — your data never leaves your device
How to use it
No account, no upload — it all happens on your device.
1
Type or paste your text into the input box.
2
Every case format updates instantly in the grid below — lowercase, UPPERCASE, Title, Sentence, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and dot.case.
3
Hit the copy icon on any card to copy that specific format.
Case conventions, decoded
Where each one shows up in real codebases.
| Case | Example | Used by |
|---|---|---|
| camelCase | userName | JavaScript / TypeScript variables and functions |
| PascalCase | UserName | Class names, React components, TypeScript types |
| snake_case | user_name | Python, Ruby, Rust functions, SQL columns |
| kebab-case | user-name | URLs, CSS classes, HTML attributes, npm package names |
| CONSTANT_CASE | USER_NAME | Environment variables, language-level constants |
| dot.case | user.name | Java packages, settings keys, OpenTelemetry attributes |
| Title Case | User Name | Headings, titles, button labels |
| Sentence case | User name | Modern UI labels, descriptions, prose |
Picking the right case for your context
Style guides exist for a reason — pick one and stay consistent.
- Frontend code: camelCase for JS/TS, PascalCase for components and types, kebab-case for CSS classes and URLs.
- Backend code: snake_case in Python, Ruby, and Rust. camelCase in Java. PascalCase in C# and Go for exported names.
- Databases: snake_case is the dominant convention for column and table names — case-insensitive handling is more reliable.
- Environment variables: CONSTANT_CASE, always. Shells and Docker conventions assume it.
- URLs: kebab-case. Search engines treat hyphens as word separators; underscores they ignore.
- UI labels: modern style guides (Apple, Google Material) favor Sentence case for almost everything. Title Case looks dated outside of headlines and proper nouns.
Things this tool doesn't try to do
- Detect language. Title Case rules differ between English, French, Spanish, and German. The tool uses AP-style English rules.
- Preserve acronyms."HTML parser" converted to camelCase becomes
htmlParser, notHTMLParser. Style guides differ on which is correct; pick one and fix up after. - Handle locale-specific casing. Turkish
i/İand Germanß/SShave edge cases that need language-aware libraries. For ASCII English text, this tool is reliable.
Frequently asked
How does the tool decide where one word ends and the next begins?
It splits on whitespace, underscores, dashes, dots, and slashes — and also at the boundary where a lowercase letter is followed by an uppercase one (so 'helloWorld' becomes two words). That covers almost every code-style and prose-style input you will paste in.
Which Title Case rules does this follow?
AP-style: capitalize the first and last words, capitalize all other words except short articles, conjunctions, and prepositions (a, an, and, the, of, in, on, etc.). Hyphenated words and proper nouns are not specially handled — if you need strict style-guide compliance, double-check the output.
Is my text uploaded anywhere?
No. Tokenization and case conversion are simple string transformations that run in your browser. Nothing is sent to a server.