Skip to content
TrueScalers

Case converter

A case converter changes the capitalisation of text without altering its words, and this one supports 11 cases. Title Case capitalises each significant word while leaving articles, short prepositions and conjunctions lowercase, so "the lord of the rings" becomes "The Lord of the Rings". Programming cases join words instead: camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE.

Calculated in your browser — nothing is uploaded.

Result

Converted to Title Case

The Quick Brown Fox Jumps Over the Lazy Dog

Title Case transformation, Unicode-aware

Characters
43
Words
9
Sentence case
The quick brown fox jumps over the lazy dog
lower case
the quick brown fox jumps over the lazy dog
UPPER CASE
THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG
camelCase
theQuickBrownFoxJumpsOverTheLazyDog
PascalCase
TheQuickBrownFoxJumpsOverTheLazyDog
snake_case
the_quick_brown_fox_jumps_over_the_lazy_dog

Converting 9 words and 43 characters to Title Case produces: The Quick Brown Fox Jumps Over the Lazy Dog.

How to use the case converter

  1. 01

    Paste your text

    Enter the text you want to re-case. Existing capitalisation is normalised before the new rule is applied.

  2. 02

    Choose the target case

    Select from eleven cases including sentence case, Title Case, camelCase, snake_case, kebab-case and CONSTANT_CASE.

  3. 03

    Read the result

    The converted text appears in the result strip and updates live as you type or change the target case.

  4. 04

    Compare alternatives

    The rows beneath preview the same text in several other cases, so you can pick without switching back and forth.

The formula

tokenise on word boundaries → apply the target case rule → rejoin with the target separator
tokenise
Split on non-alphanumeric characters and at lowercase-to-uppercase transitions, so existing camelCase is recognised.
case rule
The capitalisation applied to each token, which differs by target case.
separator
Empty for camelCase and PascalCase, underscore for snake_case, hyphen for kebab-case.

Splitting at lowercase-to-uppercase transitions is what allows "myVariableName" to convert correctly to "my-variable-name". A converter that splits only on spaces would leave the identifier as a single token and produce "myvariablename".

Worked example

Text
the quick brown fox jumps over the lazy dog
Convert to
Title Case
Result
The Quick Brown Fox Jumps Over the Lazy Dog

All 9 words are capitalised except recognised minor words — articles, coordinating conjunctions and short prepositions. The word "the" appears twice: the 1st is capitalised because it opens the title, and the 2nd stays lowercase because it sits mid-title. The word "over" is capitalised because it is not on the minor-word list. The final word is always capitalised regardless of its class. Converting the same text to camelCase instead gives theQuickBrownFoxJumpsOverTheLazyDog.

Frequently asked questions

What is title case and which words stay lowercase?

Title case capitalises the first letter of each significant word. Articles (a, an, the), coordinating conjunctions (and, but, or, nor) and short prepositions (of, in, to, for, on) remain lowercase unless they are the first or last word of the title. Style guides differ on the preposition length cut-off — AP capitalises those of four letters or more.

What is the difference between title case and sentence case?

Title case capitalises most words in the string. Sentence case capitalises only the first word of each sentence and any proper nouns, exactly as ordinary prose is written. Most modern publications and product interfaces have moved to sentence case for headings, on the grounds that it reads faster and looks less shouty.

What is camelCase and where is it used?

camelCase joins words with no separator and capitalises every word except the first, as in myVariableName. It is the conventional identifier style for variables and functions in JavaScript, Java, Swift and C#. PascalCase, also called UpperCamelCase, capitalises the first word too and is conventionally reserved for classes and types.

When should snake_case or kebab-case be used?

snake_case, with underscores, is the convention for variables and functions in Python, Ruby and SQL column names. kebab-case, with hyphens, is standard for URLs, CSS class names and HTML attributes, because underscores are harder to see under a hyperlink underline and hyphens are treated as word separators by search engines.

What is CONSTANT_CASE?

CONSTANT_CASE, also called SCREAMING_SNAKE_CASE, uses all uppercase letters joined by underscores, as in MAX_RETRY_COUNT. Nearly every language convention reserves it for compile-time constants and environment variables, which is why an all-caps identifier signals to a reader that the value is fixed and defined elsewhere.

Does converting case affect accented or non-Latin characters?

Conversion here is Unicode-aware, so accented Latin characters convert correctly — é becomes É in uppercase, and ß uppercases to SS. Scripts without letter case, including Chinese, Japanese, Arabic and Hebrew, pass through unchanged, which is the correct behaviour since the concept of case does not apply to any of them.

Sources

Last reviewed: · Formula and sources verified by Syed Aqeel Ahmad Gillani. See the methodology for how every calculation is derived.