Skip to content

Case Converter

Convert text between upper, lower, title, camel, snake and kebab case.

Updated · Examples checked by automated tests

LOCAL WORKSPACENO UPLOAD REQUIRED

UPPERCASE

HELLO WORLD

—

lowercase

hello world

—

Title Case

Hello World

—

Sentence case

Hello world

—

camelCase

helloWorld

—

PascalCase

HelloWorld

—

snake_case

hello_world

—

CONSTANT_CASE

HELLO_WORLD

—

kebab-case

hello-world

—

aLtErNaTiNg

hElLo WoRlD

—

About Case Converter

Naming conventions differ by language and by context: constants in SCREAMING_SNAKE_CASE, CSS classes in kebab-case, JavaScript variables in camelCase, headings in Title Case. Retyping between them wastes time and invites typos.

This converter detects word boundaries in whatever you paste - including existing camel case - and rewrites it in nine different conventions, all updating live as you type.

How Case Converter works in your browser

Each conversion is a distinct transformation rather than a single toggle. Sentence case capitalises after terminal punctuation; title case capitalises each significant word while leaving short articles and prepositions lowercase; camelCase, PascalCase, snake_case and kebab-case first split the input on spaces, underscores, hyphens and existing case boundaries, then rejoin it in the target convention.

The splitting step is what makes conversion between programming conventions reliable: getUserID is recognised as three parts, so it becomes get_user_id rather than getuserid.

Case mapping uses the browser’s Unicode-aware toLocaleUpperCase and toLocaleLowerCase, so accented Latin, Greek and Cyrillic characters convert correctly instead of being passed through unchanged.

When to use it

  • Converting a list of identifiers between the conventions of two languages or APIs.
  • Fixing a heading that arrived in all caps without retyping it.
  • Normalising imported CSV column names into consistent snake_case.
  • Turning a list of names or labels into title case for a UI.

Worked examples

Turn a label into code identifiers

Settings: All conversions

Input

user account ID

Expected output

camelCase: userAccountId
PascalCase: UserAccountId
snake_case: user_account_id
CONSTANT_CASE: USER_ACCOUNT_ID
kebab-case: user-account-id

The text is split into words first, so “ID” becomes one word and is re-cased consistently in each convention.

Fix a heading typed in capitals

Settings: All conversions

Input

THE STATE OF THE ART IN WEB DESIGN

Expected output

Title Case: The State of the Art in Web Design
Sentence case: The state of the art in web design

Title case keeps short words such as “of”, “the” and “in” lowercase unless they start the title. Sentence case capitalises only the first word.

Limits and checks before you use the result

  • Title and sentence case cannot know which words are names or acronyms. Check proper nouns such as “iPhone” or “NASA” after converting.
  • Programming-case conversions drop punctuation that separates words, including dots and slashes.
  • Locale rules such as Turkish dotted and dotless i follow your browser’s language settings.

Frequently asked questions

How do I convert text to title case?

Pick title case. Significant words are capitalised while short articles and prepositions are left lowercase. camelCase, PascalCase, snake_case and kebab-case are also available.

Which words stay lowercase in title case?

Short articles, conjunctions and prepositions are kept lowercase unless they start or end the title, following common style guides.

What is sentence case?

Only the first letter of each sentence is capitalised, along with any word you already wrote in capitals such as an acronym.

Does camelCase handle existing separators?

Yes. Spaces, hyphens, underscores and existing case boundaries are all treated as word breaks.

Related tools