Case Converter

Switch text between UPPERCASE, lowercase, Title Case and Sentence case.

When each case style is used

UPPERCASE and Title Case are common in headings; Sentence case matches normal prose and is generally recommended for UI text and headings in modern style guides; camelCase and PascalCase are used for variable, function and class names in most programming languages; snake_case is the convention in Python and most database column names; kebab-case is common in URLs, CSS class names and command-line flags. Converting by hand is slow and error-prone, especially across a long document.

camelCase vs PascalCase vs snake_case vs kebab-case

These four all solve the same problem - joining words together without spaces - using different conventions. camelCase and PascalCase use capital letters to mark word boundaries (the only difference is whether the very first letter is capitalized); snake_case and kebab-case instead use an underscore or hyphen as a separator and keep every letter lowercase. Which one to use isn't a matter of preference once you're working inside an existing codebase or style guide - it's usually dictated by the language or system you're working in, since mixing conventions within one project reads as inconsistent.

Why this tool's kebab-case differs slightly from its Text to Slug tool

kebab-case here is a general-purpose case style for any text. For an actual URL slug specifically, the Text to Slug tool additionally converts accented letters to their plain-ASCII equivalent and is built around that one use case - worth using instead when the output needs to become part of a real URL.

Why Sentence case is increasingly preferred for UI text

Modern design style guides (including many major tech companies') increasingly recommend Sentence case over Title Case for buttons, headings, and UI labels, since it reads as more natural and less visually "shouty" than capitalizing every word - Title Case still has its place in formal headlines and print-style contexts, but the trend in interface design has shifted toward the more conversational Sentence case.

A caveat worth knowing about this tool's Title Case

This tool capitalizes the first letter of every word; proper title-case style guides sometimes keep short words like "a," "of," and "the" lowercase (following rules like AP or Chicago style) - always double-check an important headline manually against your specific style guide if that distinction matters for your context.

Where camelCase actually comes from

camelCase gets its name from the visual pattern of alternating lowercase-then-capital letters resembling a camel's humps - it's the convention for variable and function names in JavaScript and many other programming languages specifically because spaces aren't allowed in identifiers, so capitalization is used instead to mark word boundaries.

Questions fréquentes

What's the difference between camelCase and PascalCase?

Only the first letter: camelCase starts lowercase (myVariableName), PascalCase starts uppercase (MyClassName). By convention, camelCase is typically used for variables and functions, PascalCase for classes and components.

What's "Invert case" useful for?

It flips every letter's case individually (so "Hello World" becomes "hELLO wORLD") - mostly a novelty/formatting option, sometimes used stylistically on social media, rather than a programming convention.

Will this change my original text?

It converts the text in the box in place; copy your original somewhere else first if you want to keep it.

Does Title Case capitalize every word?

This tool capitalizes the first letter of every word; proper title-case style guides sometimes keep short words like "a" or "of" lowercase, so always double-check headlines manually.

Should I use Title Case or Sentence case for a webpage heading?

Modern design style guides increasingly favor Sentence case for UI text and headings, since it reads as more natural - Title Case remains common for formal headlines and print-style contexts.

Why would I need camelCase outside of programming?

Some systems - certain CMS field names, API parameters, or file naming conventions - also use camelCase, even outside of writing actual code, wherever spaces aren't allowed, in identifiers.

Can I convert a large block of text at once?

Yes - there's no practical size limit; the same conversion rules apply instantly regardless of how much text you paste in.

Plus dans Content & Writing Tools