Writing tool

Case Converter

Convert text between 11 case styles — UPPERCASE, Title Case, camelCase, and more.

About this tool

A case converter that shows your text in eleven different case styles at once. Type, paste, or drop in a string and see how it reads as Title Case, Sentence case, lowercase, UPPERCASE, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, aLtErNaTiNg case, and inverse case. Each variant has its own copy button.

Runs entirely in your browser. No signups, no analytics, no telemetry.

What each case is for

  • UPPERCASE — every letter capitalized. Used for emphasis, acronyms, traffic signs, and the occasional screaming online. Read as shouting in chat.
  • lowercase — every letter in its lowercase form. The default for body text in most languages. Also a stylistic choice in design — bell hooks, e e cummings.
  • Title Case — first word, last word, and major words capitalized; short articles, prepositions, and conjunctions stay lowercase. Used for headlines, book titles, song names, section headings.
  • Sentence case — first letter of each sentence capitalized; everything else lowercase (except proper nouns, which this tool doesn't preserve — review manually). The default for body prose.
  • camelCase — first word lowercase, every subsequent word's first letter capitalized, no spaces. Convention for variable and function names in JavaScript, Java, Swift, and most modern languages.
  • PascalCase — every word's first letter capitalized, no spaces. Convention for class and type names in most languages.
  • snake_case — lowercase, words separated by underscores. Convention for variables in Python, Ruby, Rust, and SQL identifiers in most databases.
  • kebab-case — lowercase, words separated by hyphens. Convention for URLs, file names, CSS classes, and HTML attributes.
  • CONSTANT_CASE — uppercase, words separated by underscores. Convention for constants, environment variables, and configuration keys.
  • aLtErNaTiNg case — every other letter alternates between lower and upper. Used almost exclusively for the "mocking SpongeBob" meme. Don't use this in real code.
  • iNVERSE case — flips each letter's case. Uppercase becomes lowercase and vice versa. Useful when someone caps-locked a paragraph at you and you want to un-cap it without retyping.

How Title Case decides what to capitalize

Title Case has more rules than the other variants. This tool follows the most common modern English convention (used by AP, APA, Chicago, and most editorial style guides):

  • The first word is always capitalized.
  • The last word is always capitalized.
  • Every word in between is capitalized unless it is one of: a, an, the, and, but, or, for, nor, as, at, by, in, of, on, so, to, up, yet, via, if.

This is sometimes called "headline case" or "AP title case." Some style guides (notably the New York Times) capitalize a wider set of words; some (like Wikipedia article titles) capitalize fewer. If you need a stricter style, the output is a good starting point — review by eye.

When each programming case is conventionally correct

  • camelCase: JavaScript, Java, C#, Swift, Kotlin variables/functions/method names.
  • PascalCase: classes and types in nearly every modern language; .NET method names; React component names.
  • snake_case: Python, Ruby, Rust, and most modern shell-script identifiers; SQL column and table names in most conventions.
  • kebab-case: URL slugs, CSS class names, HTML data attributes, file names where the OS allows it, npm package names.
  • CONSTANT_CASE: constants in nearly every language; environment variables in shell, Docker, CI configs; configuration keys.

None of these are universal — Go is famous for using a mix; PHP function conventions vary by codebase; some teams pick a house style and stick with it. When in doubt, match the conventions of the file you're editing.

Frequently asked questions

How does Title Case decide what to capitalize?

Title Case capitalizes the first word, the last word, and every word in between except a fixed set of small words (articles, short prepositions, and coordinating conjunctions). The first and last words are always capitalized, including when they're small words. Follows the most common modern English convention.

What's the difference between camelCase and PascalCase?

camelCase starts lowercase (myVariable); PascalCase capitalizes the first letter too (MyVariable). In most languages, camelCase is used for variables and functions, PascalCase for classes and types.

What is CONSTANT_CASE used for?

The standard convention for constants, environment variables, and configuration keys in most languages and shell scripts. Signals "this is a fixed value."

How does Sentence case handle abbreviations?

It capitalizes the first letter after a period, exclamation mark, or question mark followed by whitespace. Abbreviations ending in a period (Dr., e.g.) can cause the next word to be capitalized incorrectly. Review manually after converting if this matters.

Why does Inverse Case sometimes leave characters unchanged?

Inverse Case flips letters that have both upper and lower forms. Characters with only one form (numbers, punctuation, symbols, most non-Latin scripts) pass through unchanged.

Is my text sent anywhere?

No. The conversion happens entirely in your browser. Nothing is sent to a server, stored, or logged.