Text · Formatting · 13 case styles

Text Case Converter

Convert between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case and 5 more styles. Smart word detection, live preview, and full history — entirely in your browser.

1 · Input Text

0 chars

0

Chars

0

Words

0

Sentences

0

Lines

Recent conversions

No conversions yet.

2 · Choose Case

Standard

Programming

Stylistic

Tip: pick a case once — the result then updates live as you type.

All 13 conversions

3 · Result

No case selected
0 chars

Case Conversion Reference

Case Type Example Common Use Category
UPPERCASE HELLO WORLD EXAMPLE Headings, emphasis, constants Standard
lowercase hello world example Casual text, URLs, emails Standard
Title Case Hello World Example Headlines, article titles, book titles Standard
Sentence case Hello world example. Body text, descriptions, UI labels Standard
Capitalized Hello World Example Proper names, labels, headings Standard
camelCase helloWorldExample JavaScript variables, JSON keys, DOM IDs Programming
PascalCase HelloWorldExample Class names, React components, C# types Programming
snake_case hello_world_example Python, Ruby, databases, file names Programming
kebab-case hello-world-example CSS classes, URLs, slugs, HTML attributes Programming
dot.case hello.world.example Namespaces, config keys, file paths Programming
CONSTANT_CASE HELLO_WORLD_EXAMPLE Environment variables, constants, macros Programming
aLtErNaTiNg hElLo wOrLd eXaMpLe Stylistic, meme text, sarcasm Stylistic
InVeRsE hELLO wORLD eXAMPLE Swaps upper and lower case Stylistic
🔒 Privacy: All conversions happen instantly in your browser — no data is sent to any server. The converter intelligently detects word boundaries in camelCase, PascalCase, snake_case, and kebab-case inputs, making it easy to convert between programming naming conventions.

Why text casing matters more than you think

Text casing seems trivial until it isn't. A mis-cased class name breaks a CSS rule. A wrong-cased API key fails authentication. A Title Case headline in a Sentence Case publication looks like it was written by someone who didn't read the style guide. Getting casing right is one of those invisible professional markers that separates polished work from amateur work.

Different contexts demand different cases: programming languages have strict conventions, style guides (APA, Chicago, AP) mandate specific title-casing rules, and UI patterns across platforms have evolved their own norms. This converter handles all of them with smart word-boundary detection that understands camelCase, PascalCase, snake_case, and kebab-case inputs.

Programming case conventions by language

Every major programming language has settled on case conventions that are now nearly universal within their ecosystems:

Language Variables Classes Constants
JavaScript camelCase PascalCase UPPER_SNAKE
TypeScript camelCase PascalCase UPPER_SNAKE
Python snake_case PascalCase UPPER_SNAKE
Ruby snake_case PascalCase UPPER_SNAKE
Java camelCase PascalCase UPPER_SNAKE
C# camelCase / PascalCase PascalCase PascalCase
Go camelCase / PascalCase PascalCase PascalCase
Rust snake_case PascalCase UPPER_SNAKE
PHP camelCase PascalCase UPPER_SNAKE
CSS kebab-case --kebab-case
HTML kebab-case
SQL snake_case PascalCase UPPER_SNAKE

Title case vs. sentence case: the style guide divide

The biggest casing divide in editorial writing is between Title Case and Sentence case. Both are correct — the right choice depends on which style guide your publication follows:

  • Title Case (Capitalize Major Words) — Used by The New York Times, The Wall Street Journal, most book publishers, and traditional American journalism. Articles (a, an, the), short prepositions (in, on, at, by), and coordinating conjunctions (and, but, or) stay lowercase unless they begin the title.
  • Sentence case (Capitalize First Word Only) — Used by The Guardian, The Economist, most academic journals, and the majority of European publications. Only the first word and proper nouns are capitalized. Cleaner, easier to scan, and friendlier to translation.

This tool's Title Case converter uses a standard minor-word list (a, an, the, and, but, or, for, in, on, at, by, of, to, etc.) and always capitalizes the first and last word, regardless of whether they're minor words.

Smart word-boundary detection

Most basic case converters just split on spaces, which fails completely on programmer-style identifiers. This tool detects boundaries in five different input formats automatically:

  • camelCase and PascalCase — inserts breaks before uppercase letters, correctly handling consecutive caps like HTMLParser → HTML Parser
  • snake_case and CONSTANT_CASE — splits on underscores
  • kebab-case — splits on hyphens
  • dot.case — splits on periods
  • Mixed spacing — collapses multiple spaces and normalizes whitespace

This means you can paste my_variable_name and convert it to MyVariableName, MY-VARIABLE-NAME, or myVariableName in one click, without manually re-entering the text.

When to use "Show all" mode

The "Show all 13 at once" view is especially useful when you're naming something and want to see every option at a glance. Developers often use this when:

  • Naming a new project — pick a base name, see it in every convention, choose what fits your stack
  • Creating a design token — see your variable name in camelCase (JS), kebab-case (CSS), CONSTANT_CASE (env), and PascalCase (component)
  • Writing documentation — see what a concept looks like in headline style, sentence style, and URL slug style
  • Brand naming — preview a brand name across all capitalization options before committing

Frequently asked questions

Title Case follows editorial rules — short words like "a", "the", "and", "in", "of" stay lowercase unless they're the first or last word. Capitalized Case capitalizes the first letter of every word regardless of length. Use Title Case for headlines and book titles; use Capitalized Case for names and labels.

Only the first letter differs. camelCase starts lowercase (myVariableName), PascalCase starts uppercase (MyVariableName). In most languages, camelCase is used for variables and functions, while PascalCase is used for classes, components, and types.

snake_case (with underscores) is standard in Python, Ruby, Rust, and SQL databases. kebab-case (with hyphens) is standard in CSS, HTML attributes, URLs, and npm packages. Use whichever convention your toolchain expects.

Yes. The word-boundary detector handles the common edge case of consecutive uppercase letters followed by a capital-lowercase transition — so HTMLParser splits into "HTML" and "Parser" (not "H T M L Parser"). Same for XMLHttpRequest and similar identifiers.

No. Every conversion happens instantly in your browser using JavaScript. Your input text, outputs, and conversion history never leave your device. The tool works fully offline once the page is loaded.

It moves your converted output back to the input field so you can chain multiple conversions together. For example: paste a sentence, convert to snake_case, then click "Use as Input" and convert the result to CONSTANT_CASE.