We use cookies

We use cookies and similar technologies to enhance your browsing experience, analyze site traffic, and personalize content and ads. By clicking "Accept", you consent to our use of cookies. Learn more in our Privacy Policy.

Free · in your browser · no signup

Case Converter

Convert text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE.

The Case Converter takes any block of text and rewrites it in a different letter-casing convention: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, or CONSTANT_CASE. Paste your text, pick a target style, and copy the result. It handles single words, full sentences, and multi-line input, and the programmer styles (camel, Pascal, snake, kebab, constant) split on spaces, hyphens, underscores, and the boundaries inside existing camelCase so a messy identifier becomes a clean one in a single pass.

It runs entirely in your browser. Your text is processed locally in the page and is never sent to a server, which matters when the thing you are reformatting is a config snippet, a column name from a private schema, or anything else you would rather not paste into a remote service. There is no signup, no upload step, and no limit beyond what your browser can hold in memory.

How it works and what each style does

Each style follows a clear rule:

  • UPPERCASE / lowercase — every letter forced to one case, punctuation and spacing untouched.
  • Title Case — first letter of each word capitalized (good for headings).
  • Sentence case — first letter of each sentence capitalized, the rest lowered.
  • camelCase — words joined with no separators, first word lowercase, every later word capitalized: userFirstName.
  • PascalCase — like camelCase but the first word is capitalized too: UserFirstName.
  • snake_case — lowercase words joined with underscores: user_first_name.
  • kebab-case — lowercase words joined with hyphens: user-first-name.
  • CONSTANT_CASE — uppercase words joined with underscores: USER_FIRST_NAME.

The programmer styles first tokenize the input into words. They break on spaces, hyphens, underscores, and the lower-to-upper transition inside existing identifiers, so getHTTPResponse and get-http-response both normalize cleanly into whichever target you choose.

A worked example

Say you start with this messy column label copied from a spreadsheet:

  Total Order-Value (USD)  

Converting it produces:

  • snake_casetotal_order_value_usd
  • camelCasetotalOrderValueUsd
  • CONSTANT_CASETOTAL_ORDER_VALUE_USD
  • kebab-casetotal-order-value-usd
  • Title CaseTotal Order-Value (USD)

Notice the difference between the two groups. The programmer styles strip surrounding whitespace, drop the parentheses and other non-alphanumeric noise, and rejoin clean tokens, which is exactly what you want for a database column or variable name. The prose styles (Title, Sentence) preserve your punctuation and spacing because they are meant for human-readable text, not identifiers. Pick the group that matches your destination.

Common use cases

A few things this gets used for every day:

  • Renaming variables to match a codebase convention — paste a name in any form and get it back as camelCase for JavaScript, snake_case for Python, or PascalCase for a class.
  • Database and API field names — turn First Name into first_name for a column, or a set of headers into consistent keys.
  • Defining constantsmax retry count becomes MAX_RETRY_COUNT.
  • URL slugsMy Blog Post Title becomes my-blog-post-title for a clean, readable path.
  • Fixing ALL-CAPS or all-lowercase text — recover normal Sentence case from text someone typed with caps lock on.
  • Cleaning up headings — apply Title Case to a list of section names so they read consistently.

Because it accepts multi-line input, you can convert a whole list at once instead of one item at a time.

Gotchas worth knowing

A few edge cases trip people up:

  • Acronyms. Converting getHTTPResponse to camelCase gives getHttpResponse, not getHTTPResponse. Most style guides actually prefer the lowercased form, but if your team keeps acronyms uppercase, you will want to fix those by hand.
  • Numbers. Digits stay attached to the word they sit next to. version2Beta becomes version_2_beta in snake_case only if your input already separated the number; a glued version2 is treated as one token.
  • Title Case and small words. This tool capitalizes the first letter of every word. Strict editorial Title Case leaves articles and short prepositions (a, the, of, in) lowercase unless they start the line. If you need that style, lowercase those words afterward.
  • Non-ASCII letters. Accented and non-Latin characters are converted using your browser's standard case rules, which handle most languages correctly but have a few known quirks (for example, the Turkish dotted/dotless i).

Why casing conventions exist

Casing is not just style. Most programming languages are case-sensitive, so userId and userid are two different identifiers. Conventions exist so a name's appearance signals what it is:

  • snake_case is the Python and SQL norm for variables, functions, and columns.
  • camelCase is standard for variables and functions in JavaScript, Java, and similar languages.
  • PascalCase usually marks a class, type, or component.
  • CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) signals a value that does not change, like an environment variable or a config key.
  • kebab-case appears where underscores are awkward: URLs, CSS class names, CLI flags, and file names.

Mixing these within one project makes code harder to read and search. A converter is handy precisely because translating between conventions by hand is tedious and easy to get subtly wrong, especially across a long list of names.

Tips

  • For identifiers, prefer the programmer styles (camel/Pascal/snake/kebab/constant) — they strip whitespace and punctuation that would be invalid in a variable name.
  • Pasting an existing camelCase or PascalCase name works fine; the tool splits it on case boundaries before re-joining in the target style.
  • Convert a whole multi-line list at once instead of one item per pass — line breaks are preserved.
  • After converting to camelCase, double-check acronyms (HTTP, URL, ID); they get lowercased and may need restoring depending on your style guide.
  • Use kebab-case for URL slugs and CSS classes, where underscores read poorly or are disallowed.
  • Sensitive snippet? It all runs in your browser, so reformatting private schema or config text never leaves your machine.

How to use Case Converter

  1. 1Paste or type your text.
  2. 2Tap the case you want to convert to.
  3. 3The text transforms in place.
  4. 4Copy the result — all done in your browser.

Frequently asked questions

What is the difference between camelCase and PascalCase?

Both join words with no separators. camelCase keeps the first word lowercase (userName), while PascalCase capitalizes the first word too (UserName). PascalCase is commonly used for class and type names.

What is CONSTANT_CASE and when should I use it?

CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) is all-uppercase words joined by underscores, like MAX_RETRY_COUNT. It conventionally marks values that don't change at runtime, such as constants and environment variables.

Can I convert a name that is already in one programmer style to another?

Yes. The tool splits existing identifiers on case boundaries and on separators, so getUserId, get_user_id, and get-user-id all normalize to the same word list before being rebuilt in your chosen style.

Does it handle acronyms like HTTP or ID correctly?

It treats them as ordinary words, so getHTTPResponse becomes getHttpResponse in camelCase. That matches most style guides, but if your team keeps acronyms uppercase you'll need to adjust those manually.

What happens to punctuation and spaces?

The programmer styles discard whitespace and non-alphanumeric characters to produce a valid identifier. The prose styles (Title Case, Sentence case) keep your punctuation and spacing intact.

Is my text uploaded anywhere?

No. All conversion runs locally in your browser. Nothing you paste is sent to a server, so it's safe for private code, config, and schema names.

Why does Title Case capitalize every word, including 'the' and 'of'?

This tool capitalizes the first letter of each word for predictability. Strict editorial Title Case lowercases short articles and prepositions; if you need that, lowercase those words after converting.

Can I convert a whole list of items at once?

Yes. Multi-line input is supported and line breaks are preserved, so you can reformat a full list of column names or headers in a single pass.

← All toolsRead our guides →