Case Converter

What Is Letter Case Conversion?

Letter case refers to whether characters are written as capitals (uppercase) or small letters (lowercase), and how those choices are combined to form words and identifiers. Case conversion is the act of transforming a piece of text from one of these patterns to another — for example turning a sentence into a headline, or a phrase into a programming-friendly identifier. It sounds trivial, but doing it by hand is slow and error-prone, especially across longer passages or lists of identifiers where consistency matters.

Programming makes this especially important because different languages and contexts each have their own naming conventions. JavaScript variables tend to use camelCase, class names use PascalCase, Python and database columns favour snake_case, CSS classes and URLs use kebab-case, and constants are written in CONSTANT_CASE. This converter understands the boundaries between words even when text is already cased — splitting camelCase, PascalCase, snake_case, kebab-case, and dot.case input back into words — so it can reliably reformat an identifier from any one style into another without you having to retype it.

How to Use This Case Converter

Type or paste your text into the input box at the top, then click the button for the format you want. The tool offers UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, tOGGLE cASE, and aLtErNaTiNg. The converted text appears in the Result box immediately below.

Use Copy Result to copy the output to your clipboard, or Clear to empty both boxes. You can click a different case button at any time to re-transform the same input, so it is easy to compare formats or fix a wrong choice.

Real-World Use Cases

  • Renaming code identifiers — convert a variable from snake_case to camelCase when moving a snippet between Python and JavaScript.
  • Generating URL slugs — turn a page title into kebab-case for a clean, lowercase URL path.
  • Fixing shouting text — drop an all-caps paragraph to Sentence case so it reads naturally again.
  • Formatting headings — apply Title Case to a list of section titles or product names for consistent presentation.
  • Creating constants — convert a descriptive phrase into CONSTANT_CASE for environment variables or configuration keys.

Tips for Converting Text Case

  • The programming formats detect existing word boundaries, so you can paste a camelCase or kebab-case identifier and convert it straight to another style without adding spaces first.
  • Use Title Case for headings and Sentence case for body copy — Sentence case only capitalizes after sentence-ending punctuation, so it suits running prose.
  • When generating slugs, kebab-case is the safest choice for URLs because it lowercases everything and joins words with hyphens that search engines read as separators.
  • CONSTANT_CASE is the conventional style for environment variables and named constants in most languages, so reach for it when defining configuration keys.
  • Toggle case flips the existing capitalization of every letter, which is handy for quickly reversing text that was typed with Caps Lock left on by mistake.

Features

  • Twelve case formats — UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, toggle case, and alternating case.
  • Smart word splitting — recognizes boundaries in already-cased input so any identifier can be converted to any other style.
  • Instant results — one click transforms your text, and you can re-click to try a different format on the same input.
  • Copy and clear — copy the result to your clipboard or reset both fields with a single button.
  • 100% client-side — your data never leaves your browser.

Frequently Asked Questions

What is Title Case?

Title Case capitalizes the first letter of every word while lowercasing the rest, producing a style commonly used for headlines, titles, and product names. In this tool it is applied word by word, so each space-separated word in your text starts with a capital letter.

When should I use camelCase versus snake_case?

Follow the convention of your language or project: JavaScript and Java typically use camelCase for variables, Python and many databases use snake_case, and CSS class names usually use kebab-case. This converter lets you switch an identifier between all of these styles instantly so you can match whatever context you are working in.

Can it convert an existing camelCase or snake_case identifier?

Yes. The tool detects word boundaries in input that is already cased — including camelCase, PascalCase, snake_case, kebab-case, and dot.case — and splits it back into words before reassembling it in your chosen format, so you can convert directly from one programming style to another.

What is the difference between Sentence case and Title Case?

Title Case capitalizes the first letter of every word and suits headings, whereas Sentence case only capitalizes the first letter after sentence-ending punctuation and lowercases everything else, which reads naturally for ordinary prose and body text.

What do toggle case and alternating case do?

Toggle case flips the existing capitalization of each letter, turning uppercase to lowercase and vice versa, while alternating case ignores the original casing and forces letters into a lower-upper-lower pattern. Both are useful for stylistic effects or for quickly reversing accidental Caps Lock typing.

Is my text sent to a server?

No. Every conversion runs locally in your browser using JavaScript, so the text you enter is never uploaded, transmitted, or stored anywhere — it stays entirely on your own device.