Text Case Converter

Paste text and convert it instantly to UPPERCASE, lowercase, Title Case, Sentence case, or programming styles such as camelCase, snake_case and kebab-case. Each line is converted separately, so lists of headings or variable names work too.

How to use the case converter

Type or paste text into the left box and choose a style. The converted text appears on the right immediately, and you can switch between styles as often as you like without losing your original. Copy result puts it on your clipboard, Use result as input lets you chain conversions, and Download .txt saves it as a file.

Each line is converted on its own. That means you can paste a list of chapter titles, product names or database columns, one per line, and convert them all at once while keeping the list structure. Tick Collapse extra spaces to tidy double spaces and stray tabs at the same time.

Writing styles

UPPERCASE and lowercase

The simplest conversions change every letter. Uppercase is useful for short labels, warnings and acronyms, but long passages in capitals are harder to read because words lose their distinctive shapes, and in emails and chat they read as shouting. Lowercase is handy for normalising data before comparing it, such as email addresses or tags.

Title Case

Title case capitalises the main words of a heading. CaseShift uses the headline-style rules common to the major English style guides: nouns, verbs, adjectives, adverbs and pronouns are capitalised, while articles (a, an, the), coordinating conjunctions (and, but, or, nor, for, so, yet) and short prepositions (of, in, on, at, to, by, via…) stay lowercase. The first and last words are always capitalised, as is any word after a colon, so “the lord of the rings: the return of the king” becomes “The Lord of the Rings: The Return of the King”. Hyphenated compounds are capitalised on both sides, as in “Long-Term Plans”.

Style guides disagree on details. AP style capitalises prepositions of four or more letters (“Over”, “Into”), Chicago lowercases all prepositions regardless of length, and APA capitalises any word of four letters or more. The minor-word list here follows the common ground between them. If your publication follows a specific guide, review prepositions such as from, with and over after converting. Untick Keep minor words lowercase to capitalise every word instead.

Sentence case

Sentence case capitalises only the first word of each sentence, plus the pronoun “I”. It is the default for headings in many modern style guides and design systems, including the GOV.UK and Microsoft style guides, because it reads more naturally and avoids debates about which words to capitalise. The converter cannot recognise names of people, places or brands, so check proper nouns afterwards: “we met in paris” will become “We met in paris”.

Capitalized Case

Capitalises the first letter of every word, including minor words. It suits names in a list, column headers or labels where consistency matters more than headline conventions.

Keep acronyms

With Keep acronyms enabled, words written entirely in capitals, such as NASA, HTML, USB or FAQ, are left alone by title, sentence and capitalized case, so you do not end up with “Nasa” or “Html”. Turn it off when converting text that was typed with Caps Lock on, otherwise every word looks like an acronym.

Programming and naming conventions

Code, file names and URLs cannot contain spaces, so developers join words using different conventions. CaseShift splits your input into words, whether it is a normal phrase, an existing identifier such as userAccountID, or something with underscores and dashes, and rebuilds it in the target style:

StyleExampleCommonly used for
camelCaseuserAccountIdVariables and functions in JavaScript, Java, Swift; JSON keys
PascalCaseUserAccountIdClasses and types in most languages; React components; C# methods
snake_caseuser_account_idPython variables and functions, Ruby, database tables and columns
CONSTANT_CASEUSER_ACCOUNT_IDConstants and environment variables
kebab-caseuser-account-idURLs and slugs, CSS classes, file names, command-line flags
Train-CaseUser-Account-IdHTTP header names such as Content-Type
dot.caseuser.account.idConfiguration keys and property paths
path/caseuser/account/idFolder structures and route paths

When splitting identifiers, the converter recognises boundaries between lowercase and uppercase letters, runs of capitals followed by a word (so XMLHttpRequest becomes xml_http_request), digits, and any punctuation. Apostrophes are removed, so “don’t stop” becomes dontStop. Accented letters are kept, which is fine for prose but may need transliterating for identifiers in languages that only allow ASCII.

Why consistent naming matters

Mixing conventions inside one codebase or dataset causes real bugs. Many systems treat names as case-sensitive, so userId and userID are different keys in JSON, JavaScript and most databases on Linux. URLs are usually case-sensitive after the domain, which is why lowercase kebab-case slugs are the safest choice for web pages. Following the convention of the language you are writing in also makes code easier for others to read: linters such as ESLint, Pylint and RuboCop flag names that break the expected style. When moving data between systems, for example from a Python API using snake_case to a JavaScript front end using camelCase, converting the keys once at the boundary keeps both sides idiomatic.

Practical examples

Tips

Frequently asked questions

What is the difference between title case and sentence case?

Title case capitalises the main words of a heading (“The Lord of the Rings”), while sentence case capitalises only the first word and proper nouns, like a normal sentence (“The lord of the rings”). Many modern style guides prefer sentence case for headings.

Which words stay lowercase in title case?

Articles (a, an, the), coordinating conjunctions (and, but, or, nor, for, so, yet) and short prepositions (such as of, in, on, at, to, by, via) stay lowercase unless they are the first or last word or follow a colon. Untick the option to capitalise every word.

Is my text sent to a server?

No. CaseShift converts text with JavaScript in your browser. Nothing you paste is uploaded, logged or stored, and the tool keeps working offline after the page loads.

How do I convert a sentence to camelCase or snake_case?

Paste the text and click camelCase or snake_case. Spaces and punctuation are removed and the words are joined using that convention, for example “user account id” becomes userAccountId or user_account_id.

Can I convert many lines at once?

Yes. Each line is converted separately and line breaks are preserved, so you can convert a whole list of headings, names or identifiers in one step.

Why did an acronym change to lowercase?

Make sure “Keep acronyms” is ticked. It only applies to title, sentence and capitalized case; programming styles such as snake_case always normalise letters so the result follows the convention.

Does it handle accented letters and other alphabets?

Yes. Letters with accents and scripts that have upper and lower case, such as Greek and Cyrillic, are converted correctly. Scripts without case, such as Chinese or Arabic, are left unchanged.