Text Case Conversion Guide
Our text case converter supports 11 different text case formats and transforms your text instantly. Whether you're a developer who needs to rename a variable, a writer who needs to format a title correctly, or a student converting text for an assignment, our free online converter handles it in one click.
Text Case Formats Explained
UPPERCASE: ALL LETTERS CAPITALIZED — used for emphasis, acronyms, and constants. lowercase: all letters in lowercase — common for URLs and some programming contexts. Title Case: Every Major Word Is Capitalized — standard for book titles, headings, and article titles. Sentence case: Only the first letter is capitalized — used for most body text and prose. camelCase: firstWordLowercase, subsequent WordsCapitalized — the JavaScript convention for variable names. PascalCase: AllWordsCapitalized — used for class names in most OOP languages. snake_case: words_connected_with_underscores — the Python variable convention. kebab-case: words-connected-with-hyphens — used for CSS class names and URL slugs. CONSTANT_CASE: UPPERCASE_WITH_UNDERSCORES — the convention for environment variables and constants. aLtErNaTiNg: alternating letter case — used for stylistic purposes. Reverse: reverseD cAsE — reverses the case of each character.
When to Use Each Case
In web development: kebab-case for CSS classes and HTML attributes, camelCase for JavaScript variables and functions, PascalCase for React components and TypeScript interfaces, snake_case for Python variables and database column names, CONSTANT_CASE for environment variables and config keys. In writing: Title Case for headings and article titles, Sentence case for body paragraphs.
Using Our Free Text Case Converter
Paste or type your text and click any format button. The conversion happens instantly. Use the copy button to copy the result to your clipboard.
Frequently Asked Questions
What text cases are supported?
UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, aLtErNaTiNg case, and Reverse case — 11 formats total.
What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter (firstName, userAge). PascalCase starts with an uppercase letter (FirstName, UserAge). camelCase is used for variables/functions in JavaScript; PascalCase is used for classes and React components.
What is snake_case used for?
snake_case uses underscores to separate words, all lowercase. It's the standard convention for Python variable/function names, database column names, and file names in many systems.
What is kebab-case used for?
kebab-case uses hyphens to separate words, all lowercase. It's used for CSS class names (btn-primary), URL slugs (/blog/my-post), HTML data attributes (data-user-id), and npm package names.