Skip to content

Case Converter

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

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.

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