Skip to content
cliplimeClipLime

Convert text between cases

Twelve styles, from title case to snake_case, converted as you type.

0 characters, 0 lines

Options

Only the letter i is affected. Turkish and Azerbaijani pair i with İ and ı with I.

The same text in every style

Add some text to see all 12 styles side by side. The previews use the first line.

Your text stays in your browser. Nothing you type or paste is sent anywhere.

At a glance

Styles
Twelve: UPPER CASE, lower case, Title Case, Capitalize Each Word, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, aLtErNaTiNg and iNVERSE cASE.
Title case
Choose AP and APA rules or Chicago and MLA rules for small words. The first and last word are always capitalized.
Line by line
Title, capitalize, camel, Pascal, snake, kebab and constant case work on each line separately, so a list keeps its line breaks.
Unicode
Accents, Greek, Cyrillic and other cased scripts convert correctly. Scripts without case, such as Chinese, are left as they are.
Turkish
An option applies the Turkish and Azerbaijani rules for i, I, İ and ı, which differ from English.
All at once
A table shows your text in every style, each with its own copy button.
Privacy
Converted in your browser. Your text is never uploaded.

How to do it

  1. 1

    Paste your text

    Type or paste into the box. The result appears next to it as you type.

  2. 2

    Pick a style

    Choose one of the twelve styles. The output switches straight away.

  3. 3

    Adjust the options

    Title case and sentence case have options for small words, acronyms and the pronoun I. Letter rules cover the Turkish i.

  4. 4

    Copy the result

    Press Copy, or Download to save a text file. The table at the bottom copies any other style without switching.

Which case for which job

Every style exists because some group of people agreed on it. Here is what each one is normally used for:

  • UPPER CASE: acronyms, warning labels and short headings. Long passages are harder to read in capitals.
  • lower case: tags, usernames, email addresses and search terms, anywhere capitalization should not matter.
  • Title Case: headlines, and the titles of books, films and articles.
  • Sentence case: ordinary writing, interface text, and headings in documentation styles that prefer it.
  • camelCase and PascalCase: names in code. camelCase is common for variables and functions in JavaScript, Java and Swift, and for keys in many JSON APIs. PascalCase is common for classes and types.
  • snake_case: Python and Ruby variables and functions, Rust, and SQL column names.
  • kebab-case: URLs, CSS class names, HTML attributes and file names. Hyphens read well in an address but are not allowed in most variable names.
  • CONSTANT_CASE: constants and environment variables.
  • aLtErNaTiNg and iNVERSE cASE: mocking text in memes, and rescuing text typed with caps lock on.

How title case works, and why guides disagree

Title case capitalizes the important words of a title and leaves small ones in lower case. Where to draw the line is a matter of style, not grammar, so style guides disagree.

  • AP and APA capitalize words of four letters or more and keep articles, short conjunctions and short prepositions in lower case. In 'A Walk Through the Park', Through gets a capital. (AP uses sentence case for its own news headlines, so its rule applies to the titles of works.)
  • Chicago and MLA keep prepositions in lower case, whatever their length, along with articles and coordinating conjunctions. The same title becomes 'A Walk through the Park'.
  • All of them capitalize the first and last word, and most capitalize the first word after a colon. Verbs such as is and be are capitalized, however short.

The converter applies those shared rules, but it cannot read your sentence. It does not know whether in belongs to a verb (Log In) or is a preposition (Life in the City), so it treats in and on as small words every time. Words that are often part of a verb or an adverb, such as up, off, out, down, inside, outside, near and past, are always capitalized, even though Chicago and MLA would lower them as prepositions. It treats to as a small word everywhere, and it cannot tell a proper noun from an ordinary word. Check a headline against your guide before you publish it.

Capitalize Each Word is a separate style that capitalizes every word, with no exceptions. It suits names and simple labels, not headlines.

Unicode, German ß and the Turkish dotted i

Case is not the same in every language, and a few letters break the idea that every capital has one small partner.

  • German ß has no capital form in standard use, so converting to upper case writes SS. Converting back gives ss, so the round trip is lossy.
  • Turkish and Azerbaijani have two i letters: dotted i with capital İ, and dotless ı with capital I. Standard rules turn I into i, which is wrong in Turkish. With the Turkish letter rules, 'istanbul' becomes 'İSTANBUL' and 'ISPARTA' becomes 'ısparta'.
  • A dotted capital İ converted to lower case with standard rules becomes an i followed by a combining dot above, because that is what the Unicode rules say. It looks like i, but it is two characters.
  • Greek final sigma is handled whenever a word is lowered, in lower case, title case and inverse case: ΟΔΟΣ becomes οδος, with the closing ς at the end.
  • Scripts without case, such as Chinese, Japanese, Arabic and Hebrew, are left unchanged. Accents and other combining marks are kept.

How camelCase and snake_case split words

The word styles first split each line into words, then join them in the new style. Words are split at spaces, punctuation, underscores and hyphens, and where a lower case letter or digit meets a capital. So getUserName becomes get, User and Name. A run of capitals stays together until the capital that starts the next word: HTTPServer becomes HTTP and Server. A lower case s at the end of a run of capitals stays with it, so userIDs becomes user and IDs. Apostrophes are dropped, so it's becomes its.

Digits stay attached to the word before them, so version2Update becomes version2 and Update. In the output, acronyms are treated like ordinary words: 'XML HTTP request' becomes xmlHttpRequest, which several style guides, including Google's Java style guide, prefer. If your code base keeps acronyms in capitals, adjust those by hand. Each line is converted on its own, so a column of field names becomes a column of identifiers.

Questions people ask

What is the difference between title case and capitalizing every word?

Title case keeps small words such as a, of and the in lower case, except at the start and end of the title. Capitalize Each Word gives every word a capital, with no exceptions.

Does it keep acronyms such as NASA and names like iPhone?

Yes in title, capitalize and sentence case, as long as Keep words that already have capitals inside is on and your text is not all in capitals. If the whole text is in capitals, nothing tells an acronym from any other word, so everything is converted.

Why does ß turn into SS?

Standard Unicode rules write the German ß as SS in upper case, because it has no single capital letter in everyday use. Converting back to lower case gives ss, not ß.

How do I convert a sentence to camelCase or snake_case?

Paste it and pick the style. 'user first name' becomes userFirstName or user_first_name. Text that is already in camelCase, snake_case or kebab-case is split into words first, so you can convert between styles directly.

Does it change my line breaks or other characters?

Line breaks are kept in every style. Punctuation, emoji and spacing are left as typed in the upper, lower, title, capitalize, sentence, alternating and inverse styles. The camel, Pascal, snake, kebab and constant styles drop spaces and punctuation, because that is their purpose.

Is my text uploaded?

No. The conversion runs in your browser. Nothing you type or paste is sent anywhere.

Guides that help

All Text guides →