Case converter

Instantly convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case and more. Everything runs in your browser.

0 words · 0 characters

What each case style means

  • Title Case — Capitalises The First Letter Of Every Word. Used for headlines and titles.
  • Sentence case — Capitalises only the first letter of each sentence.
  • camelCase — firstWordLowerRestCapitalised. Common for JavaScript variables.
  • PascalCase — EveryWordCapitalised. Used for class and component names.
  • snake_case — words_joined_with_underscores. Common in Python and databases.
  • kebab-case — words-joined-with-hyphens. Used for URLs and CSS classes.
  • CONSTANT_CASE — UPPERCASE_WITH_UNDERSCORES. Used for constants and env variables.

Which case does each language use?

Naming conventions are enforced by community style guides and linters rather than by the languages themselves, but breaking them marks code out immediately.
LanguageVariables & functionsTypes & classesConstants
JavaScript / TypeScriptcamelCasePascalCaseCONSTANT_CASE
Pythonsnake_casePascalCaseCONSTANT_CASE
GocamelCase (unexported), PascalCase (exported)PascalCasePascalCase
Rustsnake_casePascalCaseCONSTANT_CASE
Java / C#camelCase (Java), PascalCase (C#)PascalCaseCONSTANT_CASE
Rubysnake_casePascalCaseCONSTANT_CASE
SQLsnake_case
CSSkebab-case--kebab-case (custom properties)
In Go the case carries actual meaning rather than style: an identifier beginning with a capital letter is exported from its package, and a lowercase one is private. It is the one mainstream language where renaming across cases changes behaviour.

Title case is not one rule

Simple title case capitalises every word, which is what most tools do and what this one does. Published style guides are stricter: they lowercase articles, short prepositions and conjunctions unless the word is first or last.
StyleRuleExample
Simple / start caseCapitalise every wordThe Rise Of The Machines
AP styleLowercase words under 4 lettersThe Rise of the Machines
Chicago styleLowercase articles, conjunctions, prepositionsThe Rise of the Machines
Sentence caseCapitalise first word and proper nouns onlyThe rise of the machines
Sentence case has become the default for headings in most modern interfaces — Google, Apple and GOV.UK all specify it — because it is easier to read quickly and avoids the ambiguity of which words to lowercase.

Converting between programming cases

Converting reliably means splitting an identifier into words first, and that split is where most naive implementations fail. Word boundaries appear at underscores, hyphens, spaces, and at any lowercase-to-uppercase transition.

The awkward case is consecutive capitals. An identifier such as parseHTTPResponse should split as parse, HTTP, Response — but a rule that breaks before every capital produces parse, H, T, T, P, Response instead. This is why acronyms often survive a round trip through a converter in a mangled form, and why many style guides now recommend writing parseHttpResponse to sidestep the problem entirely.

Frequently asked questions

Is my text sent to a server?

No. All case conversion happens locally in your browser. Nothing is uploaded, so it is safe for private text.

Can it fix ALL CAPS text I typed by accident?

Yes. Paste the text and choose Sentence case or Title Case to restore normal capitalisation instantly.

Which case should programmers use?

It depends on the language: camelCase for JavaScript variables, PascalCase for classes/components, snake_case for Python, and kebab-case for URLs and CSS.

What is the difference between camelCase and PascalCase?

Only the first letter. camelCase starts lowercase (userName) and PascalCase starts uppercase (UserName). Most languages use camelCase for variables and PascalCase for classes and types.

Should I use snake_case or kebab-case?

It depends on the context. snake_case for Python, Ruby and SQL identifiers; kebab-case for URLs, CSS class names and HTML attributes. Hyphens are not valid in identifiers in most languages, which is why code uses underscores.

Why does Title Case capitalise small words like of and the?

This tool applies simple title case, which capitalises every word. AP and Chicago styles lowercase short articles, conjunctions and prepositions, so adjust those by hand if you are following a specific style guide.

What happens to acronyms when converting?

Consecutive capitals such as HTTP or URL are hard to split reliably, so they may be reformatted unexpectedly. Check identifiers containing acronyms after conversion.

Does converting case change the meaning of my code?

In most languages, no — it is only a convention. Go is the exception: a capitalised identifier is exported from its package and a lowercase one is not, so case changes behaviour.

Related free tools

Word counterURL slug generatorJSON to CSVPassword generator