ConvertersFebruary 10, 2026

Text Case Converter: UPPER, lower, Title, and camelCase

Transform text between different cases instantly. Convert to UPPERCASE, lowercase, Title Case, camelCase, snake_case, and more with one click.

text formattingcase conversiondeveloper toolstext tools

Text case matters. Variable names use camelCase. Constants use SCREAMING_SNAKE_CASE. Titles use Title Case. Converting between these formats manually is tedious and error-prone, especially with long text or multiple conversions.

This guide covers common text case formats, explains when to use each, and shows how to convert between them instantly using ToolMix's free case converter.

Common Text Case Formats

Original: hello world example 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
SCREAMING_SNAKE: HELLO_WORLD_EXAMPLE_TEXT
kebab-case:      hello-world-example-text
SCREAMING-KEBAB: HELLO-WORLD-EXAMPLE-TEXT

When to Use Each Case

  • camelCase — JavaScript/Java variables, methods (myVariableName)
  • PascalCase — Class names, React components (UserProfile)
  • snake_case — Python variables, SQL columns (user_email)
  • SCREAMING_SNAKE — Constants, environment variables (API_KEY)
  • kebab-case — URLs, CSS classes (primary-button)
  • Title Case — Headings, article titles (How to Learn Programming)
  • Sentence case — Regular sentences, descriptions

How to Convert Text Case

  • Step 1: Paste or type your text
  • Step 2: Select the desired case format
  • Step 3: Click "Convert"
  • Step 4: Copy the converted result

🔤 Try our free Text Case Converter

Try it free

Programming Case Conventions by Language

Different programming languages have different conventions:

// JavaScript/TypeScript
const userName = "John";        // camelCase variables
class UserProfile { }           // PascalCase classes
const API_KEY = "abc123";       // SCREAMING_SNAKE constants

# Python
user_name = "John"              # snake_case variables
class UserProfile:              # PascalCase classes
API_KEY = "abc123"              # SCREAMING_SNAKE constants

// Java
String userName = "John";       // camelCase variables
class UserProfile { }           // PascalCase classes
final String API_KEY = "abc";   // SCREAMING_SNAKE constants

// Ruby
user_name = "John"              # snake_case variables
class UserProfile               # PascalCase classes
API_KEY = "abc123"              # SCREAMING_SNAKE constants

Title Case Rules

Title Case is complex because not all words are capitalized:

  • Capitalize first and last words always
  • Capitalize major words (nouns, verbs, adjectives, adverbs)
  • Lowercase articles (a, an, the)
  • Lowercase conjunctions (and, but, or, for)
  • Lowercase short prepositions (in, on, at, to, by)
  • Capitalize prepositions of 4+ letters (After, Between, Through)
Examples:
"the lord of the rings" → "The Lord of the Rings"
"a guide to web development" → "A Guide to Web Development"
"breaking through the noise" → "Breaking Through the Noise"

URL-Friendly Case (kebab-case)

URLs should use lowercase with hyphens (kebab-case):

Good:
https://example.com/blog/how-to-learn-javascript

Bad:
https://example.com/blog/How_To_Learn_JavaScript
https://example.com/blog/how%20to%20learn%20javascript

Best Practices for Case Usage

  • Be consistent — Stick to your language's conventions
  • Use linters — Tools like ESLint enforce case rules
  • Follow style guides — Airbnb, Google, etc. specify case conventions
  • Name files consistently — lowercase-hyphen.js vs camelCase.js
  • Avoid mixing conventions — Don't use snake_case in JavaScript
  • Document deviations — If you break conventions, explain why

Frequently Asked Questions

Try the Tool

Related Articles