Convert text case

Paste text, pick a style, take the result. Handy for a headline shouted in caps, or a column name that needs to become an identifier.

Convert to

The conversion runs as you type, inside this tab. Your text is never uploaded.

How to use it#

  1. Paste your text into the first box.
  2. Choose the case you want. The result updates immediately.
  3. Copy it, or replace the input with the result to chain another conversion.

Title case is not just capitalising everything#

Real title case leaves short words lowercase in the middle of a heading (a, an, the, and, of, to, for) while capitalising everything else. "The Rise and Fall of the Empire", not "The Rise And Fall Of The Empire".

The exception is position: the first and last words are always capitalised regardless of how minor they are, which is why "What Are You Waiting For" keeps its capital F. Style guides differ in the details, and this follows the common convention.

Identifier cases, and when each one is expected#

camelCase is the default for variables in JavaScript and Java. PascalCase names classes and React components. snake_case dominates Python and SQL columns. kebab-case belongs in URLs, CSS class names and filenames. CONSTANT_CASE marks environment variables and compile-time constants.

Getting one wrong rarely breaks anything, but it does get noticed. A Python function called getUserName reads as foreign the moment a reviewer opens the file.

Acronyms survive the trip#

Splitting an identifier into words is where most converters fall over. Given parseHTTPResponse, a naive split produces parse, H, T, T, P, Response and the result is unusable.

This tool detects a run of capitals followed by a capitalised word and keeps the acronym whole, so parseHTTPResponse becomes parse_http_response rather than a string of single letters.

Frequently asked questions#

What is the difference between title case and capitalised case?

#

Title case leaves minor words like "and", "of" and "the" lowercase unless they start or end the title. Capitalising every word is a different, more emphatic style that most editors would correct.

How does sentence case decide where sentences start?

#

It lowercases everything, then capitalises the first letter of the text and of anything following a full stop, question mark or exclamation mark.

Will it keep my acronyms intact?

#

For identifier styles, yes. A run of capitals is treated as one word, so parseHTTPResponse converts cleanly to parse_http_response.

Does it handle accented characters?

#

Yes. Word splitting uses Unicode letter categories, so café and naïve are treated as single words rather than split at the accent.

Is my text sent anywhere?

#

No. The conversion runs in your browser as you type and nothing is uploaded.