Case Converter

Paste text and convert it between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case and kebab-case. Every result copies with one click, and it all runs in your browser.

Enter text to see every case below.

The case styles

"Case" refers to how letters and word boundaries are formatted. The everyday styles are UPPERCASE, lowercase, Title Case (each major word capitalised) and Sentence case (only the first letter of each sentence). Programmers also use camelCase, snake_case and kebab-case for names with no spaces.

"hello world" Hello World / helloWorld / hello_world / hello-world

This converter applies each transformation to your exact text at once, so you can copy whichever form a document, headline or codebase needs.

Worked example

The phrase "order id" in code styles:

camelCase: orderId — common for JavaScript variables.
snake_case: order_id — common in Python and SQL.
kebab-case: order-id — common in URLs and CSS.

Title case vs sentence case

Title Case capitalises the first letter of each significant word — this tool capitalises every word for simplicity, which suits headlines. Sentence case capitalises only the first letter after each sentence-ending mark, matching how normal prose is written. Choose title case for headings and button labels, and sentence case for body copy and UI text, which most modern style guides prefer.

Tip: to turn a title into a URL-friendly handle, the dedicated slug generator also strips accents and punctuation.

Which case does each language expect?

Naming conventions aren't arbitrary — most languages and frameworks publish style guides, and matching them makes your code read the way other people's code does. The common defaults:

ContextVariables / functionsTypes / classesConstants
JavaScript / TypeScriptcamelCasePascalCaseUPPER_SNAKE_CASE
Python (PEP 8)snake_casePascalCaseUPPER_SNAKE_CASE
Rubysnake_casePascalCaseUPPER_SNAKE_CASE
GocamelCase (private) / PascalCase (exported)PascalCasePascalCase
CSS classeskebab-case (BEM uses block__element--modifier)
SQL columnssnake_case (unquoted identifiers are case-insensitive)
URLs & file nameskebab-case — lowercase, hyphen-separated, no spaces

When you cross a boundary — say a Python API (order_id) feeding a JavaScript front-end (orderId) — pick one convention for the wire format and convert at the edge, rather than mixing both throughout your code.

Edge cases this tool handles (and a few it can't)

Converting case sounds trivial until real text arrives. A few things worth knowing:

  • Acronyms. HTTPSConnectionhttps_connection is usually what you want, but parseURL can become parse_u_r_l in naive converters. This tool splits on the lower→upper boundary, so check acronym-heavy names by eye.
  • Numbers. user2FA and address2 keep their digits attached to the adjacent word — there's no universal rule, so confirm the result matches your project's style.
  • Accents and non-Latin scripts. Case conversion respects Unicode where the browser does, but for URL slugs you'll usually want to transliterate (é → e) — that's a job for the slug generator, not a case converter.
  • The Turkish "i". In Turkish locale, uppercasing i gives İ (dotted), not I. This tool uses the default (invariant) mapping, which is the safe choice for code identifiers.

Sentence case vs Title Case for headings

For user-facing copy the trend has moved decisively toward sentence case. Apple's Human Interface Guidelines, Google's Material Design and the GOV.UK style guide all recommend sentence case for buttons, menus and titles, because it's faster to read, looks less shouty, and avoids the genuine ambiguity of which words to capitalise in title case. Reserve Title Case for proper nouns, book and article titles, and contexts where a house style demands it. If you're unsure, sentence case is the safer default in 2026.

Frequently asked questions

What case styles can I convert to?

UPPERCASE, lowercase, Title Case, Sentence case, plus the programming styles camelCase, PascalCase, snake_case and kebab-case — all generated from your text at once.

What's the difference between title case and sentence case?

Title case capitalises the first letter of (most) words, suiting headlines; sentence case capitalises only the first letter of each sentence, like ordinary prose.

When do I use camelCase vs snake_case?

It's a convention of the language or project: camelCase is typical in JavaScript and Java, snake_case in Python and SQL, and kebab-case in URLs and CSS class names.

Is my text kept private?

Yes. Every conversion runs in your browser. Nothing you paste is uploaded or stored.

MB
Mustafa Bilgic · Editor, Calcool
Case styles follow common writing and programming naming conventions. Everything runs in your browser — nothing you enter is uploaded, logged or stored.

Related calculators