Text Case Converter

Convert text to UPPER CASE, lower case, Title Case, camelCase, PascalCase, kebab-case, and snake_case instantly. Free online tool.

  • Runs in your browser
  • Tool input is not uploaded to ZeroTool servers
  • Free · No Sign-Up
All nine variants update as you type. Delete the input or press Ctrl/⌘+L while focus is inside the tool to clear the results.
Case variants
Enter text to see all nine case variants.

Uppercases letters with the browser’s default Unicode rules and keeps spaces and punctuation. For example, café becomes CAFÉ and ß becomes SS.

Copy copies the full nonempty result in this row. If copying fails, select the result and copy it manually.

Lowercases letters with the browser’s default Unicode rules and keeps spaces and punctuation. Language-specific casing rules are not applied.

Copy copies the full nonempty result in this row. If copying fails, select the result and copy it manually.

hello WORLD becomes Hello World; userLoginCount becomes Userlogincount. Spaces and punctuation stay in place. Short words such as of and the are capitalized too.

Copy copies the full nonempty result in this row. If copying fails, select the result and copy it manually.

Capitalizes the first letter of the whole input, skipping leading spaces, quotes, brackets and symbols, and lowercases the rest. Nothing is capitalized if a digit comes before the first letter or the input starts with a Chinese, Japanese or Korean character. Later sentences and proper nouns are not detected: first. SECOND becomes First. second.

Copy copies the full nonempty result in this row. If copying fails, select the result and copy it manually.

Splits words at case changes, letter–digit boundaries and separators, then joins them with a lowercase first word. Acronyms are recased: parseHTML becomes parseHtml.

Copy copies the full nonempty result in this row. If copying fails, select the result and copy it manually.

Splits words, capitalizes each word and joins them without separators. Apostrophes are removed before splitting: don’t stop becomes DontStop. Accents are retained.

Copy copies the full nonempty result in this row. If copying fails, select the result and copy it manually.

Joins split words in lowercase with hyphens. Accents stay: café au lait becomes café-au-lait. Letters and digits split: base64Encode becomes base-64-encode.

Copy copies the full nonempty result in this row. If copying fails, select the result and copy it manually.

Joins split words in lowercase with underscores. Spaces, punctuation and line breaks separate words, so a multi-line list becomes one identifier.

Copy copies the full nonempty result in this row. If copying fails, select the result and copy it manually.

Joins split words in uppercase with underscores. Uses default Unicode casing: Straße becomes STRASSE. Case changes and letter–digit boundaries also split words.

Copy copies the full nonempty result in this row. If copying fails, select the result and copy it manually.

Read the full guide Camel Case Explained: camelCase, PascalCase and What Style Guides Say About Acronyms
Examples, details and FAQ Worked examples, how it compares with other tools, and answers to common questions.

Case Formats Reference

NameExampleCommon Use
UPPER CASEHELLO WORLDHeadings, constants (informal)
lower casehello worldGeneral text normalization
Title CaseHello WorldTitles, proper nouns
Sentence caseHello worldNormal prose
camelCasehelloWorldJS variables, JSON keys
PascalCaseHelloWorldClasses, components
kebab-casehello-worldCSS classes, URL slugs
snake_casehello_worldPython, SQL columns
CONSTANT_CASEHELLO_WORLDEnv vars, constants

Examples

Each row is the tool's output for the same input. The input getHTTPResponseCode v2 mixes an acronym, camel humps and a version number:

FormatOutput
camelCasegetHttpResponseCodeV2
PascalCaseGetHttpResponseCodeV2
kebab-caseget-http-response-code-v-2
snake_caseget_http_response_code_v_2
CONSTANT_CASEGET_HTTP_RESPONSE_CODE_V_2
Title CaseGethttpresponsecode V2

The digit splits from the letter, so v2 becomes v-2 in kebab-case. In camelCase and PascalCase the two parts are joined again, which is why V2 looks unchanged there. If you need v2 as one word, rename it in the result.

A second input, OAuth2 token expires_in, shows how a mixed-case brand name is split: camelCase gives oAuth2TokenExpiresIn, snake_case gives o_auth_2_token_expires_in. The split happens at the lowercase-to-uppercase change in "OAuth". Write oauth2 in lower case first if you want oauth_2_token_expires_in.

A list of SQL columns such as user_id, created_at becomes userIdCreatedAt in camelCase: the comma and space are separators like any other punctuation, so all words end up in one identifier.

How Words Are Split

camelCase, PascalCase, kebab-case, snake_case and CONSTANT_CASE first split the input into words, with the same rules as the change-case library's split with separateNumbers:

  • At a lowercase letter or digit followed by an uppercase letter: userLoginCount → user, Login, Count.
  • Before the last capital of an acronym that starts a new word: XMLHttpRequest → XML, Http, Request.
  • Between letters and digits: base64Encode → base, 64, Encode.
  • At any run of spaces, punctuation or symbols: user-login_count → user, login, count.

Apostrophes are removed before splitting (as lodash does), so don't stop → dontStop. Letters from any script and their accents are kept: café au lait → caféAuLait, Привет мир → приветМир.

Limitations

  • Title Case and Sentence case keep your spacing and punctuation and do not split identifiers: userLoginCount → Userlogincount. Title Case capitalizes every word, including short words such as "of" and "the".
  • Sentence case capitalizes only the first letter of the whole input and lowercases the rest: first. second sentence! THIRD → First. second sentence! third. Proper nouns and later sentences need manual fixes.
  • Spaces, quotes, brackets and symbols before that first letter are skipped. A Chinese, Japanese or Korean character also counts as a letter, so a Latin word after it stays lowercase. If the first letter or digit is a digit, nothing is capitalized: 2FA CODE → 2fa code (see the examples below).
  • The identifier formats treat line breaks as separators too, so a multi-line list becomes one long identifier. Convert one name at a time, or use Line Tools to clean up a list first. For URL slugs with transliteration of accented letters, use Slugify.
  • Acronyms are not kept in capitals in camelCase or PascalCase: parseHTML → parseHtml.
  • Case changes use the browser's default Unicode rules, not a language-specific locale: ß becomes SS in CONSTANT_CASE, and Turkish dotted/dotless i is not handled.
  • Scripts without letter case (Chinese, Japanese, Korean) pass through unchanged; only spaces and punctuation between them become separators. A capital letter directly after a Chinese, Japanese or Korean character does not start a new word, so 用户ID stays one word (用户id in kebab-case); put a space before the Latin part to split it.
  • Emoji and other symbols are separators in the identifier formats, so they are removed there; UPPER CASE, lower case, Title Case and Sentence case keep them.
  • Full-width letters typed with a Chinese, Japanese or Korean input method stay full-width in every format. Convert them to normal-width letters first if the result must be ASCII.

Example: "hello" she said becomes "Hello" she said in Sentence case: the quotation mark is skipped and the first letter after it is capitalized. Title Case gives "Hello" She Said.

Example: 2FA CODE gives 2fa code in Sentence case because the input starts with a digit.

Example: 🚀 launch day gives launchDay in camelCase and LAUNCH_DAY in CONSTANT_CASE (the emoji is dropped), but 🚀 Launch Day in Title Case.

FAQ

What is camelCase, and how is it different from PascalCase?

camelCase joins words with no separator, keeps the first word lowercase and capitalizes each word after it: 'hello world' → 'helloWorld'. It is common for JavaScript variable names. PascalCase also capitalizes the first word: 'HelloWorld', common for class and component names.

What are snake_case and kebab-case?

Both join lowercase words. snake_case uses underscores ('Hello World' → 'hello_world'), common in Python and database column names. kebab-case uses hyphens ('hello-world'), common for CSS class names. Accented letters stay as they are ('café au lait' → 'café-au-lait'); for an ASCII-only URL slug, use the Slugify tool.

Can I convert an existing identifier such as userLoginCount?

Yes. The tool splits words at case changes, so 'userLoginCount' gives 'user_login_count' and 'XMLHttpRequest' gives 'xml-http-request'. Digits become their own word: 'base64Encode' gives 'base-64-encode'. Paste one name at a time: spaces, commas and line breaks are separators, so a list of names becomes one long identifier.

Why does parseHTML become parseHtml?

The tool splits 'parseHTML' into 'parse' and 'HTML', then writes every word after the first as one capital letter followed by lowercase letters. Style guides do not agree on acronyms (some keep 'HTTP', others write 'Http'), and the tool cannot know which one your project follows. If you need 'parseHTML', change the acronym in the result.

Does Title Case follow a headline style such as AP or Chicago?

No. Title Case capitalizes the first letter of every word, including short words: 'the lord of the rings' becomes 'The Lord Of The Rings'. It also lowercases the rest of each word, so 'iPhone' becomes 'Iphone'. If your style keeps some short words in lowercase, edit them in the result.

Is my text sent anywhere?

No. The conversions run in your browser tab with JavaScript; the text is not sent, and the tool does not save it in browser storage. Page analytics record only the tool name and which Copy button you clicked (for example copy_camel), not the text.