ContentMar 14, 2026 Β· Updated Oct 13, 2026 Β· 3 min read

How to Convert Text Case: Uppercase, Lowercase, Title Case

Text case conversion transforms text between different capitalization formats β€” uppercase, lowercase, title case, sentence case, and programming conventions like camelCase and snake_case. It's a daily task for content editors, developers, and anyone working with text data.

πŸ” 
Try the Text Case Converter
Free, no signup
β†’
DG
Derek Giordano
Designer & Developer
In this guide
01Case Types Explained02Using the Text Case Converter03Worked Example: A Bug This Guide Found04Programming Case Conventions

Case Types Explained

UPPERCASE β€” all letters capitalized. Used for headings, abbreviations, and emphasis.

lowercase β€” all letters uncapitalized. Used for CSS classes, URLs, and file names.

Title Case β€” first letter of each word capitalized. Used for headings and titles.

Sentence case β€” first letter of first word capitalized. Used for body text and descriptions.

camelCase β€” first word lowercase, subsequent words capitalized, no spaces. Used in JavaScript variable names.

snake_case β€” all lowercase with underscores. Used in Python and database columns.

kebab-case β€” all lowercase with hyphens. Used in CSS classes and URL slugs.

Using the Text Case Converter

Paste your text, pick the target case and copy the result. Title Case keeps acronyms (HTML, AI) and mixed-case names (iPhone, JavaScript) as written, keeps short words such as a, an, the, and, of and in lowercase unless they are the first or last word, and handles accented and non-Latin letters. Sentence case also keeps acronyms. Title-case style guides differ in the details β€” Chicago and AP disagree on prepositions of four or more letters, for example β€” so check a house style for headlines that matter.

Worked Example: A Bug This Guide Found

This guide used to promise that our Title Case kept acronyms and small words. When we tested it (Node.js and Chromium, script in our test folder, October 13, 2026), it did neither: it capitalized every word, lowercased the rest, and only recognized ASCII letters. We fixed the tool; here is the before and after:

InputBeforeNow
the HTML and CSS guide for beginnersThe Html And Css Guide For BeginnersThe HTML and CSS Guide for Beginners
a tale of two citiesA Tale Of Two CitiesA Tale of Two Cities
élan vital in the age of AIéLan Vital In The Age Of AiÉlan Vital in the Age of AI
how to use iPhone and JavaScriptHow To Use Iphone And JavascriptHow to Use iPhone and JavaScript
state-of-the-art toolsState-of-the-art ToolsState-of-the-Art Tools

The third row shows why a naive /\w\S*/g pattern fails on accented text: in JavaScript \w only matches ASCII letters, so the match started at the l of Γ©lan. Unicode property escapes such as \p{L} with the u flag match letters in any script.

Programming Case Conventions

JavaScript uses camelCase for variables and PascalCase for classes. Python uses snake_case for functions and PascalCase for classes. CSS uses kebab-case for class names and custom properties. SQL uses UPPER_CASE for keywords and snake_case for columns. Consistency within a project matters more than which convention you choose.

Frequently Asked Questions

How do I convert text to title case?+
Capitalize the first letter of each major word. Articles (a, an, the), conjunctions (and, but, or), and short prepositions (in, of, to) stay lowercase unless they start the title. The Text Case Converter handles these rules automatically.
What is camelCase?+
camelCase capitalizes the first letter of each word except the first, with no spaces: myVariableName. It's the standard naming convention for JavaScript variables and functions.
What is the difference between kebab-case and snake_case?+
kebab-case uses hyphens (my-class-name), used in CSS and URLs. snake_case uses underscores (my_variable_name), used in Python and SQL.
Try it yourself

Use the Text Case Converter β€” free, no signup required.

⚑ Open Text Case Converter
DG
Derek Giordano
Written by the creator of Ultimate Design Tools. BA in Business Marketing.