Case converter

UPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case and more.

UPPER CASE
THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG
lower case
the quick brown fox jumps over the lazy dog
Title Case
The Quick Brown Fox Jumps Over The Lazy Dog
Smart Title Case
The Quick Brown Fox Jumps over the Lazy Dog
Sentence case
The quick brown fox jumps over the lazy dog
camelCase
theQuickBrownFoxJumpsOverTheLazyDog
PascalCase
TheQuickBrownFoxJumpsOverTheLazyDog
snake_case
the_quick_brown_fox_jumps_over_the_lazy_dog
kebab-case
the-quick-brown-fox-jumps-over-the-lazy-dog
CONSTANT_CASE
THE_QUICK_BROWN_FOX_JUMPS_OVER_THE_LAZY_DOG
dot.case
the.quick.brown.fox.jumps.over.the.lazy.dog
Train-Case
The-Quick-Brown-Fox-Jumps-Over-The-Lazy-Dog
aLtErNaTiNg
tHe qUiCk bRoWn fOx jUmPs oVeR ThE LaZy dOg
iNVERSE cASE
THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG

How it works

Case conventions are not cosmetic — in code they carry meaning, and in prose they follow style guides that genuinely disagree with each other.

Programming cases

camelCase
JavaScript and Java variables and functions.
PascalCase
Class and type names in most languages; components in React and Svelte.
snake_case
Python and Ruby variables, and SQL columns.
kebab-case
URLs, CSS classes and custom HTML elements — which require a hyphen.
CONSTANT_CASE
Environment variables and compile-time constants.

Title case is not one rule

“Smart Title Case” above keeps short prepositions, articles and conjunctions lowercase unless they are the first or last word — the common denominator of the AP, Chicago and MLA styles. They differ in the details: Chicago lowercases all prepositions regardless of length, AP capitalises those of four letters or more. When it matters, check the specific guide.

Acronym handling

The tokeniser splits HTTPServerError into HTTP, Server and Error rather than mangling it into h-t-t-p-server-error, which is the case most naive converters get wrong.