Capitalisation looks like a small detail until a page mixes three styles of heading, or a variable called userName sits next to one called user_email. Consistent text case makes writing look professional and code easier to read.
This guide covers the case styles you are likely to need, where each one is used, and the small rules that trip people up. You can convert any text instantly with the free freetoolza Text Case Converter.
The case styles at a glance
| Style | Example | Typical use |
|---|---|---|
| UPPERCASE | SAVE CHANGES | Short labels, acronyms, warnings |
| lowercase | save changes | Tags, email addresses, casual style |
| Title Case | How to Plan a Weekend Trip | Book and article titles, many news headlines |
| Sentence case | How to plan a weekend trip | Headings in many modern style guides, buttons, UI text |
| camelCase | userFirstName | Variables and functions in JavaScript, Java, Swift, Kotlin |
| snake_case | user_first_name | Variables in Python, database columns, many APIs |
| kebab-case | user-first-name | URLs, file names, CSS class names |
Title case: the rules that matter
In title case, “major” words are capitalised and “minor” words usually are not. The details vary between style guides, but most agree on these points:
- Always capitalise the first and last word, plus nouns, pronouns, verbs (including short ones such as “Is” and “Be”), adjectives and adverbs.
- Usually lowercase articles (a, an, the), coordinating conjunctions (and, but, or, nor, for, so, yet) and short prepositions (in, on, at, to, of, by), unless they start or end the title.
- Prepositions are where guides differ. AP style capitalises prepositions of four or more letters (“With”, “From”, “Into”); Chicago style lowercases prepositions regardless of length.
Example in common usage: A Beginner’s Guide to Saving Money on Groceries. Note “to” and “on” stay lowercase, while “Guide” and “Saving” are capitalised.
Good to know: automatic title case (including ours) capitalises the first letter of each word. It is a fast first pass, but you may want to lowercase small words such as “a”, “of” and “the” by hand to match your style guide.
Sentence case: the modern default
Sentence case capitalises only the first word and proper nouns, exactly as in a normal sentence. Many organisations now use it for headings, menus and buttons because it is faster to read, avoids debates about which small words to capitalise, and feels friendlier. Several major technology companies’ writing guides recommend sentence case for interface text.
Remember to keep proper nouns capitalised: “How to use Google Sheets in India”, not “How to use google sheets in india”. Automatic converters cannot know which words are names, so always read the result once.
Choosing between title case and sentence case
There is no universally correct answer. What matters is picking one and using it everywhere on the same site or document. A practical approach: use title case for the main title of an article or book if your publication prefers it, and sentence case for subheadings, buttons and navigation. If you have no house style, sentence case is the simpler choice.
Programming cases: camelCase, snake_case and kebab-case
Code cannot contain spaces in names, so programmers join words in different ways. Each language community has a convention, and following it makes your code look familiar to other developers:
- camelCase (
totalPrice): variables and functions in JavaScript, TypeScript, Java, Kotlin and Swift. - PascalCase (
ShoppingCart): class and component names in many languages, including React components. - snake_case (
total_price): variables and functions in Python and Ruby, and column names in many databases. - SCREAMING_SNAKE_CASE (
MAX_RETRIES): constants in many languages. - kebab-case (
total-price): URLs, file names and CSS classes. Hyphens are not allowed in most programming-language variable names.
Why kebab-case is best for URLs
Search engines treat hyphens as word separators, so /how-to-plan-a-trip/ is read as separate words. Underscores and run-together words are harder for people to read in a link, and capital letters can cause duplicate URLs on some servers. Lowercase kebab-case is the safe, readable choice for page addresses and image file names.
How to convert text in one click
- Open the Text Case Converter and paste your text.
- Click the style you need: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case or kebab-case.
- Check proper nouns and acronyms, then click Copy result.
A common use is fixing text that was typed with Caps Lock on: paste it, click Sentence case, and correct the names. Developers often paste a list of human-readable field names such as “first name, last name, phone number” and convert them to camelCase or snake_case for code.
Frequently asked questions
Is writing in all caps bad?
For long text, yes: it is harder to read and online it comes across as shouting. Short labels and acronyms are fine.
Should email subject lines use title case?
Either works. Sentence case often feels more personal; title case feels more formal. Be consistent within a campaign.
What happens to numbers and symbols when converting?
Letters change case; numbers stay the same. In camelCase, snake_case and kebab-case, spaces and most punctuation are replaced by the joining style.
Checking length as well as style? The Word & Character Counter shows words and characters as you type.


