Skip to content
Quaestio

Change case

Type your text and it appears in every format at once. Click Copy for the one you need.

Every format

  • UPPER CASE

    –

  • lower case

    –

  • Capitalise Every Word

    –

  • Sentence case

    –

  • camelCase

    –

  • PascalCase

    –

  • snake_case

    –

  • kebab-case

    –

  • CONSTANT_CASE

    –

Embed

Embed this tool on your site

Copy the code and paste it where the tool should appear, such as a blog post or a school page. It is free, the box has no ads and the tool calculates in the visitor’s browser.

How it works

Upper and lower case are the simplest formats: everything large or everything small. Accented letters are handled like any other letter.

Capitalising every word is often called title case. This tool capitalises every word without exception. English style guides say short words such as “and” and “of” should stay lower case, so English headlines usually need a small edit afterwards.

Sentence case lowercases the text and then capitalises the first letter after each full stop, question mark and exclamation mark.

The code formats split the text into words at spaces, hyphens, underscores and at the point where a small letter meets a capital. That is why helloWorld can be rewritten as hello_world just as easily as ordinary text.

camelCase starts with a small letter, PascalCase with a capital. snake_case and kebab-case separate the words with underscores and hyphens, and CONSTANT_CASE is snake_case in capitals.

Upper and lower case by Unicode

The tool uses the browser’s case conversion, which follows Unicode’s default rules with no adjustment for any language. Under Unicode’s SpecialCasing table, the German ß becomes two letters, SS, in capitals. Straße becomes STRASSE, and back in lower case strasse, so the conversion cannot be undone. The ligature fi becomes FI in the same way. The table also has special rules for Turkish and Azerbaijani, where i becomes a dotted İ in capitals, but the tool does not apply them.

Capitals on every word and sentence case

Capitalising every word turns the rest of each word into lower case. NASA becomes Nasa and iPhone becomes Iphone, while an apostrophe stays part of the word, so don’t becomes Don’t. The GOV.UK style guide goes the other way and tells writers to use sentence case everywhere, even in page titles and service names, keeping capitals for proper nouns. It also advises against block capitals for large amounts of text, because they are hard to read; the upper case format is best kept for short labels.

Sentence case first lowercases everything, proper nouns included: “we met in London and then I left” becomes “We met in london and then i left”. It then capitalises the first letter after every full stop, question mark, exclamation mark or ellipsis. That turns “buy e.g. apples” into “Buy e.G. Apples” and “version 2.5 is out” into “Version 2.5 Is out”.

The code formats

The code formats split text at anything that is not a letter or a digit, and where a small letter or a digit is followed by a capital. Runs of capitals are not split: XMLHttpRequest becomes xmlhttp_request and getHTTPResponseCode becomes get_httpresponse_code. Digits count as part of a word, so version2Update becomes version2_update in snake_case. Apostrophes split words, so don’t stop becomes don_t_stop. Accented letters are kept as they are: Crème brûlée becomes crèmeBrûlée in camelCase.

Sources

How the tools are checked