What is Text Case?

Text case refers to the capitalisation pattern applied to letters in a word or phrase. Different contexts — formal writing, web development, databases, URLs, social media — each have their own case conventions, and mixing them up causes confusion, broken code, or inconsistent branding.

Converting between cases manually is tedious and error-prone, especially for long strings or when switching between multiple conventions in the same project. A case converter automates the process in a single click.

Convert text to any case instantly — UPPERCASE, camelCase, snake_case, and 7 more. Free, no sign-up.

Open Case Converter →

All Case Types Explained

Here's every major case type at a glance, with colour-coded groupings for writing and developer use:

UPPERCASE
HELLO WORLD
All letters capitalised. Used for headings, warnings, abbreviations.
lowercase
hello world
All letters lower. Used in URLs, coding, casual digital writing.
Title Case
Hello World
Every word capitalised. Used for article titles, headings, book names.
Sentence case
Hello world
First word only. Standard for body text, captions, UI labels.
camelCase
helloWorld
No spaces, first word lowercase. Variables & functions in JS, Java.
PascalCase
HelloWorld
All words capitalised, no spaces. Class names in most OOP languages.
snake_case
hello_world
Lowercase, underscores. Python, Ruby, database columns, file names.
kebab-case
hello-world
Lowercase, hyphens. CSS classes, HTML attributes, URL slugs.
aLtErNaTiNg
hElLo WoRlD
Alternates lower/upper. Used for memes, sarcastic tone online.
iNVERSE cASE
hELLO wORLD
Flips every letter's case. Creative typography and text effects.

Writing Cases

UPPERCASE

Every letter is capitalised. Use it sparingly — all-caps text is harder to read than mixed case and can feel aggressive in prose. Best used for: abbreviations (NASA, HTML, API), short headings where impact matters, warning labels, and button text in some design systems.

lowercase

All letters lower. Used in URLs, domain names, most code identifiers, and casual digital communication. Some brands use all-lowercase for their names (e.g. adidas, instagram) as a deliberate style choice.

Title Case

The first letter of every word is capitalised. Used for article headlines, page titles, book names, product names, and formal document headings. Different style guides (AP, Chicago, APA) have slightly different rules about which words to capitalise — see the Title Case Rules section below.

Sentence case

Only the first word of each sentence and proper nouns are capitalised — exactly like normal prose. This is the most common case for body text, email subjects, UI labels, and modern product copy. Most major tech companies (Google, Apple, Notion) now use Sentence case for UI headings rather than Title Case.

💡 Sentence vs Title

When in doubt between Title Case and Sentence case for a heading: if it's a formal document or publication, use Title Case. If it's a web page, app UI, or blog post, Sentence case is the modern standard.

Developer Cases

camelCase

Words are joined with no separator. The first word is all lowercase; every subsequent word starts with a capital letter. The capital letters in the middle resemble a camel's humps — hence the name.

Used in: JavaScript, Java, Swift, Kotlin — variable names, function names, method names, object properties.

PascalCase (UpperCamelCase)

Identical to camelCase except the first word is also capitalised. Every word starts with an uppercase letter with no separators.

Used in: Class names in C#, Java, TypeScript, Python. React component names. Constructor functions.

🔑 camelCase vs PascalCase

Quick rule: myFunction() is camelCase — it's a function call. MyComponent is PascalCase — it's a class or React component.

snake_case

All lowercase, words separated by underscores. Named after the way the text "slithers" along the ground with no capital humps.

Used in: Python (variables, functions, file names), Ruby, PostgreSQL/MySQL column names, JSON keys in some APIs, environment variable names in lowercase.

kebab-case

All lowercase, words separated by hyphens. Named because the words are "skewered" like kebab ingredients on a stick.

Used in: CSS class names, HTML data attributes, URL slugs, npm package names, YAML configuration keys, HTML file names.

🔑 snake_case vs kebab-case

Both are all-lowercase. Use snake_case in Python and databases. Use kebab-case in CSS, HTML, and URLs. The hyphen in kebab-case is invalid in most programming language identifiers, but valid in CSS and HTML.

When to Use Each Case — Quick Reference

CaseExamplePrimary useContext
UPPERCASEAPI_KEYConstants, abbreviations, env varsDev Writing
lowercaseusernameURLs, general identifiersDev
Title CaseThe Quick Brown FoxArticle titles, book names, formal headingsWriting
Sentence caseThe quick brown foxBody text, UI labels, blog headingsWriting
camelCasegetUserData()Variables, functions in JS/Java/SwiftDev
PascalCaseUserProfileClasses, React components, constructorsDev
snake_caseuser_idPython vars, DB columns, file namesDev
kebab-casenav-barCSS classes, URL slugs, HTML attrsDev

Live Case Converter Demo

Type any text below to see all case conversions in real time:

Try it — type any text
UPPERCASE
HELLO WORLD EXAMPLE TEXT
lowercase
hello world example text
Title Case
Hello World Example Text
Sentence case
Hello world example text
camelCase
helloWorldExampleText
PascalCase
HelloWorldExampleText
snake_case
hello_world_example_text
kebab-case
hello-world-example-text

Title Case Rules by Style Guide

Title Case isn't simply "capitalise every word" — different style guides have different rules about which words to skip. The main ones to know:

⚠️ Practical tip

For blog posts and web content, use our Case Converter's Title Case mode — it handles the standard rules automatically. For academic papers, check your institution's specific style guide.

Frequently Asked Questions

camelCase joins multiple words with no spaces, capitalising the first letter of each word except the first. Example: helloWorld, myVariableName. It is the standard naming convention for variables and functions in JavaScript, Java, Swift, and many other languages.
Both use all lowercase letters. snake_case joins words with underscores (my_variable) — standard in Python, Ruby, and database column names. kebab-case joins words with hyphens (my-variable) — standard in CSS class names, HTML attributes, and URL slugs. Hyphens are invalid in most programming language identifiers but valid in CSS and HTML.
Use Title Case for formal publications, book titles, and document headings. Use Sentence case for web content, app UI, blog posts, and email subjects — it's the modern standard for digital copy. Most major tech companies use Sentence case for UI text.
PascalCase capitalises every word including the first — HelloWorld, UserProfile. It is the standard for class names in C#, Java, TypeScript, and Python, as well as React component names. It visually distinguishes classes and components from regular variables and functions which use camelCase.
Yes — completely free, no account needed. All conversions happen locally in your browser using JavaScript. Your text is never uploaded to any server, making it safe for code snippets, sensitive documents, and confidential content.

Conclusion

Text case is one of those small details that separates professional writing from careless copy, and working code from broken identifiers. Knowing when to use Title Case vs Sentence case for headings, camelCase vs PascalCase for identifiers, and snake_case vs kebab-case for separators makes your work consistent and readable.

Our free Case Converter handles all ten case types in one place — paste any text, click the target case, and copy the result. No manual editing required.

Convert text to any case — 10 options including camelCase, snake_case, kebab-case and more. Free.

Open Case Converter →

Related Tools