🔡

Case Converter

Convert text between 10 cases instantly: UPPERCASE, lowercase, Title Case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and more.

✓ Free forever✓ No signup✓ 100% private — runs in your browser
Case Converter
Convert text between 12 different cases. Click any case button to instantly transform your text.
Input Text
Choose Conversion
Output
Select a case above to convert…
Character Map Preview

Naming conventions are rarely a matter of taste — they are enforced by the language, the framework, or the team. Converting between them by hand is tedious and error-prone, especially across a long list of identifiers.

How to use the Case Converter

  1. Paste your text into the input box
  2. Click the case you want to convert to
  3. Copy the result, or convert again to a different case

Where each case is used

  • camelCase — JavaScript and Java variables and functions. getUserName
  • PascalCase — classes, components and types in most languages. UserProfile
  • snake_case — Python variables and functions, and SQL column names. user_name
  • kebab-case — URLs, CSS class names, HTML attributes, and filenames. user-profile
  • CONSTANT_CASE — constants and environment variables. MAX_RETRY_COUNT
  • Title Case — headings and article titles.
  • Sentence case — body text, and increasingly UI labels and buttons.

Title case is not just capitalising everything

Proper title case leaves short words lowercase unless they start or end the title: articles (a, an, the), coordinating conjunctions (and, but, or), and short prepositions (in, on, at, to, of). So it is The Rise of the Machines, not The Rise Of The Machines.

Style guides disagree on the cutoff — AP lowercases prepositions of three letters or fewer, Chicago uses four. Pick one and be consistent; the inconsistency is more noticeable than either choice.

Converting between conventions without losing meaning

Case conversion is mechanical in one direction and lossy in the other, which is why round-tripping sometimes surprises people.

Going from camelCase to snake_case is reliable: the capital letters mark the word boundaries, so parseHTTPResponse splits cleanly. Going the other way is reliable too. The trouble is all-uppercase input — convert PARSEHTTPRESPONSE to camelCase and there is no information left about where the words were. Nothing can recover it.

Consecutive capitals are the other edge case, and conventions genuinely disagree. Should HTTPResponse become http_response or h_t_t_p_response? Most style guides treat a run of capitals as one word, which gives the first. But Google's Java style, among others, prefers HttpResponse precisely so the question never arises — and that is worth adopting if you control the naming.

If a conversion matters and the input is all caps, insert the word boundaries by hand first. It is faster than debugging the result.

Case rules that are enforced rather than preferred

Some casing is style; some is enforced by a system and will break things if you get it wrong.

  • Domain names are case-insensitive. Example.COM and example.com are the same host.
  • URL paths usually are not. On a Linux server, /About.html and /about.html are different files — and one of them is a 404. This is the most common real-world casing bug on the web.
  • Email local parts are technically case-sensitive before the @, though in practice every major provider treats them as insensitive. Do not design around the technicality.
  • HTTP headers are case-insensitive, and HTTP/2 requires them lowercase on the wire.
  • Environment variables are case-sensitive on Unix and insensitive on Windows, which is a classic source of scripts that work on one machine and not another.
  • SQL keywords are insensitive; identifiers depend on the engine. PostgreSQL folds unquoted identifiers to lowercase, MySQL's behaviour depends on the filesystem.

When in doubt, lowercase is the safer default for anything machine-read.

Converting a list of identifiers in bulk

The common real task is not converting one string but converting a column of them — database fields to JSON keys, CSV headers to variable names, API responses to a different convention.

Paste the list and convert in one pass rather than line by line. A few things make the result reliable.

Check the separators first. A mixed list where some entries use underscores and some use hyphens converts inconsistently, because the tool has to infer word boundaries. Normalising the separators before converting avoids it.

Watch for entries that are already converted. Running camelCase through a camelCase converter is usually a no-op, and running snake_case through it twice is not — the second pass has no underscores left to work from.

Reserved words survive conversion and then break the code. A field named class, function or type is a valid column name and an invalid identifier in several languages.

Leading digits are the other one: 2fa_enabled becomes 2faEnabled, which is not a legal identifier anywhere. These need a prefix rather than a conversion.

Sorting the converted list afterwards makes both problems easy to spot.

Frequently asked questions

Which case should I use for URLs?

kebab-case. Lowercase with hyphens is the long-standing convention, Google treats hyphens as word separators (underscores it does not), and it avoids case-sensitivity problems between servers.

What is the difference between camelCase and PascalCase?

Only the first character. camelCase starts lowercase (getUserName), PascalCase starts uppercase (GetUserName). PascalCase is also called UpperCamelCase.

Will converting break my accented characters?

No. Case conversion is Unicode-aware, so é becomes É correctly. Conversions that strip characters — kebab-case and snake_case — will remove accents, since those cases are meant for identifiers and URLs.

Can I convert a whole list at once?

Yes. Paste multiple lines and the conversion applies to the entire text. For identifier cases each line is treated separately, so a list of names converts cleanly.