What is a case converter?
A case converter changes the capital letters in a text without retyping it. It turns a heading in capitals into Title Case, fixes text typed with Caps Lock on, or turns a phrase into a code name such as userFirstName or user_first_name.
How to change text case
- Type or paste your text into the Input pane.
- Click a case button above the panes, for example UPPERCASE or camelCase.
- Read the result in the Output pane.
- Click Copy.
Which case for which job?
- camelCase: variables and functions in JavaScript, Java and Swift.
- PascalCase: class and type names.
- snake_case: Python, Ruby and database columns.
- kebab-case: CSS classes, URL slugs and file names.
- CONSTANT_CASE: constants and environment variables.
- Title Case: headlines. This tool capitalizes every word, including small words such as "and" and "of".
Frequently Asked Questions
What is camelCase?
Words joined with no spaces, each word after the first starting with a capital: myVariableName. JavaScript, Java, TypeScript and Swift use it for variables and functions.
What is the difference between snake_case and kebab-case?
Both use lowercase words. snake_case joins them with underscores (user_first_name), kebab-case with hyphens (user-first-name). Python and databases use snake_case. CSS and URLs use kebab-case.
What is PascalCase?
Like camelCase, but the first word also starts with a capital: UserProfile. Most languages use it for class and type names.
What is CONSTANT_CASE used for?
Constants and environment variables, such as MAX_RETRIES and DATABASE_URL. The capitals show that the value does not change.
Does Title Case keep small words lowercase?
No. This tool capitalizes the first letter of every word. Style guides keep words such as "a", "and" and "of" lowercase, so fix those by hand if your guide asks for it.