Case Converter

Convert text between UPPER, lower, Title, camelCase, snake_case and more.

AI
Bulk mode Pro

What is Case Converter?

A case converter transforms text between different letter case formats instantly. Instead of manually retyping or editing text character by character, you paste your content and convert it to uppercase, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, or SCREAMING_SNAKE_CASE with a single click. This saves significant time for developers, content writers, SEO professionals, and data engineers who work with text transformation daily.

Different programming languages, databases, APIs, and publishing platforms enforce different naming conventions. Python uses snake_case, JavaScript uses camelCase, CSS uses kebab-case, and SQL uses SCREAMING_SNAKE_CASE for constants. When working across these systems — or when refactoring existing code — a case converter eliminates the tedious manual work of reformatting variable names, field names, and identifiers.

Beyond code, case conversion is essential for formatting headings, creating URL slugs, fixing accidental caps lock, and standardizing imported data. Our tool handles any amount of text and processes conversions in milliseconds, entirely in your browser with no server round-trip needed.

Use Cases

Here are the most common ways people use Case Converter every day.

Programming and Development

Python uses snake_case for variables and functions. JavaScript and TypeScript use camelCase. Classes in most languages use PascalCase. SQL databases typically use SCREAMING_SNAKE_CASE for constants and snake_case for column names. React component names use PascalCase. When copying variable names across languages, refactoring a codebase, or translating API responses to frontend variables, the case converter handles all these conventions instantly and accurately.

Blog Post and Article Titles

Title Case capitalizes the first letter of every major word and is the standard format for blog post titles, article headlines, podcast episode titles, and chapter headings. Our Title Case converter follows The Chicago Manual of Style rules: prepositions, articles (a, an, the), and conjunctions under 4 letters are kept lowercase unless they start or end the title. This is more nuanced than simply capitalizing every word, which produces incorrect results like "A Guide To The Art Of Writing."

URL Slug Generation

URL slugs must be lowercase with hyphens replacing spaces — never underscores or uppercase letters. This is a hard requirement for SEO: Google treats hyphens as word separators but treats underscores as character joiners. "word-counter" and "wordcounter" are different from Google's perspective. Use the kebab-case converter to create SEO-compliant URL slugs from blog titles and page names instantly.

Database and API Design

REST API endpoint paths use kebab-case (/user-profile, /blog-posts). JSON response keys typically use camelCase (firstName, accountBalance). Database column names use snake_case (first_name, created_at). GraphQL type names use PascalCase. When designing APIs or translating between backend and frontend field names, the converter helps you generate all variants of a name without error-prone manual editing.

Fixing Accidental Caps Lock Text

Accidentally typing in ALL CAPS is a common mishap, especially on mobile keyboards or after switching between apps. Instead of retyping the entire passage, paste it into the converter and click "Sentence case" to fix it instantly. The sentence case conversion also correctly lowercases words that are all-caps but keeps proper nouns capitalized if they start a new sentence.

Data Normalization and Import

When importing data from spreadsheets, CSVs, or external APIs, field names and values are often inconsistently cased. A customer name field might have "JOHN SMITH", "john smith", and "John Smith" in the same column. Normalizing to Title Case or lowercase before import saves time in data cleaning. The converter handles batch text normalization for any amount of content.

Examples

Example 1

API Response to JavaScript Variables

An API returns snake_case JSON keys that need to become camelCase for JavaScript.

Input user_first_name account_balance last_login_date
Output userFirstName accountBalance lastLoginDate
Example 2

Blog Title to URL Slug

Convert a blog title to a SEO-compliant URL slug using kebab-case.

Input The Complete Guide to Building a SaaS Product in 2025
Output the-complete-guide-to-building-a-saas-product-in-2025
Example 3

Fix Caps Lock Mistake

Convert an accidentally typed ALL CAPS passage to normal sentence case.

Input THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.
Output The quick brown fox jumps over the lazy dog.

Tips for Using Case Converter

  • Use kebab-case for URL slugs and CSS class names — never spaces or underscores in URLs.
  • PascalCase and camelCase are identical except PascalCase capitalizes the first letter — use PascalCase for React components and TypeScript types.
  • Title Case in AP Style keeps prepositions under 4 letters lowercase; Chicago Style keeps them under 5 letters lowercase — know which style your publication follows.
  • For i18n translation key names, kebab-case (auth.login-button) or dot-notation (auth.loginButton) keeps them readable and sortable.
  • SCREAMING_SNAKE_CASE is a visual signal to other developers that a value is a constant and should never be reassigned.

Frequently Asked Questions

What is the difference between Title Case and Sentence case?

Title Case capitalizes the first letter of every major word: "The Quick Brown Fox Jumps Over the Lazy Dog." Sentence case only capitalizes the first word and proper nouns: "The quick brown fox jumps over the lazy dog." Title Case is used for headings, titles, and navigation labels. Sentence case is standard for body text, meta descriptions, UI labels, and email subject lines. Many style guides (including Google's Material Design) recommend Sentence case for UI to feel more conversational.

What is camelCase used for?

camelCase joins words without spaces and capitalizes each word after the first (myVariableName, getUserById). It is the standard naming convention for variables and functions in JavaScript, TypeScript, Java, Swift, Dart, and Go. The name comes from the hump-like appearance of the capital letters in the middle of compound words. camelCase originated in early computing languages that did not allow spaces in identifiers and needed a readable way to combine multiple words.

What is snake_case used for?

snake_case uses all lowercase letters with words separated by underscores (my_variable_name, get_user_by_id). It is the standard in Python for variable and function names per PEP 8, in Ruby by convention, in SQL for column and table names, and in many REST API JSON response formats. Snake_case is considered highly readable for long compound names because word boundaries are visually clear with the underscore separator.

What is the difference between PascalCase and camelCase?

PascalCase capitalizes the first letter of every word including the first (MyClassName, UserProfileComponent). camelCase keeps the first letter lowercase (myVariableName, userProfileComponent). PascalCase is used for class names, React component names, TypeScript interfaces and types, and constructor functions. camelCase is used for variable and function names. The difference matters: in JavaScript, new myComponent() would fail if the convention is violated since class instantiation expects PascalCase constructors.

What is kebab-case and when is it used?

kebab-case uses all lowercase letters with words separated by hyphens (my-variable-name, user-profile-page). It is named after the appearance of words on a skewer. kebab-case is the standard for URL slugs (/blog/how-to-use-case-converter), HTML data attributes (data-user-id), CSS class names (.nav-link), and HTTP header names (Content-Type, Authorization). It cannot be used in most programming language identifiers because the hyphen is interpreted as a subtraction operator.

Does case conversion work with numbers and special characters?

Numbers and special characters pass through unchanged — only alphabetic letters are affected by case transformation. For example, "product_id_123" converts to "productId123" in camelCase. Emoji and Unicode letters in other scripts (Greek, Cyrillic, Arabic) are handled correctly — only Latin alphabet characters have case variants, so non-Latin characters are preserved as-is in all conversion modes.

Can I convert an entire paragraph to Title Case?

Yes. Paste any amount of text and the Title Case conversion applies the capitalization rules word by word across the entire content. However, Title Case was designed for headings and titles, not for paragraphs. Applying Title Case to a multi-paragraph essay produces awkward text because articles and prepositions mid-sentence are not capitalized. For paragraphs, use Sentence case instead.

What is SCREAMING_SNAKE_CASE?

SCREAMING_SNAKE_CASE (also called UPPER_SNAKE_CASE or MACRO_CASE) uses all uppercase letters with words separated by underscores (MAX_RETRY_COUNT, DATABASE_URL, API_KEY). It is the universal convention for constants, environment variable names in .env files and shell scripts, and configuration values in languages like C, C++, Python, and JavaScript. The all-caps format is a visual signal to developers: this value is a constant that should not be changed at runtime.