What Is a Text Case Converter?
A text case converter changes the capitalisation style of a string without altering the words themselves. Whether you need to normalise user input, follow a coding convention, or reformat headings, converting case by hand is tedious and error-prone. This tool converts any text to 13 different case formats in one click.
Supported Case Formats
- UPPERCASE — all letters capitalised. Useful for headings, constants, and emphasis.
- lowercase — all letters in lower case. Common for normalising input before comparison or storage.
- Title Case — first letter of each major word capitalised. Standard for article titles, book names, and headings.
- Sentence case — only the first letter of each sentence is capitalised. Mirrors natural written prose.
- camelCase — words joined with no separator; each word after the first starts with a capital letter. Convention in JavaScript, Java, and Swift variable names.
- PascalCase — like camelCase but the very first letter is also capitalised. Standard for class and component names in most languages.
- snake_case — words separated by underscores, all lowercase. Convention in Python, Ruby, and database column names.
- kebab-case — words separated by hyphens, all lowercase. Used in CSS class names, HTML attributes, and URL slugs.
- CONSTANT_CASE — words separated by underscores, all uppercase. Used for environment variables and compile-time constants.
- dot.case — words separated by dots, all lowercase. Common in configuration keys and package names.
- path/case — words separated by forward slashes, all lowercase. Useful for generating file paths or URL segments.
- aLtErNaTiNg CaSe — letters alternate between lower and upper case. Primarily decorative or used for mockery memes.
- iNVERSE cASE — capitalisation flipped: uppercase letters become lowercase and vice versa.
Which Case Should I Use in Code?
Different languages and ecosystems have strong conventions. Python uses snake_case for variables and functions, PascalCase for classes. JavaScript/TypeScript use camelCase for variables and PascalCase for classes and React components. CSS custom properties and HTML attributes use kebab-case. Environment variables and compile-time constants are almost universally CONSTANT_CASE.
Title Case Rules
This tool follows a common English title-case rule: always capitalise the first and last word, and capitalise all other words except short articles (a, an, the), coordinating conjunctions (and, but, for, nor, or, so, yet), and prepositions of fewer than five letters (at, by, for, in, of, on, to, up, as). This matches the Chicago Manual of Style guidelines used in most publishing contexts.