Case converter
UPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case and more.
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.