Case Converter

Instantly transform text between uppercase, lowercase, title case, sentence case, camelCase, PascalCase, snake_case, and kebab-case — essential for developers and writers.

info Select a case type above to convert

Text Case Conversion for Developers and Writers

Text case refers to the capitalisation pattern applied to letters in a string. From the all-caps headlines of newspapers to the camelCase variable names of JavaScript source code, choosing the correct case convention is a fundamental task in both professional writing and software development. Case inconsistencies in code repositories cause build failures, linting errors, and merge conflicts; in published content, they damage brand consistency and readability.

The most common transformations — UPPERCASE, lowercase, and Title Case — are familiar to anyone who has used a word processor. However, software engineering has introduced additional conventions that encode semantic meaning directly into identifier names. Understanding and correctly applying these conventions is essential for every developer, technical writer, database administrator, and content strategist.

Standard Text Case Formats

UPPERCASE converts every letter to its capital form. It is used for acronyms (NASA, HTML, CSS), constants in most programming languages (MAX_RETRY_COUNT), and emphasis in headings. In US legal documents, UPPERCASE text traditionally signals defined terms or titles of legislation. lowercase is its opposite — all characters converted to their small form. URLs, email addresses, CSS class names, and HTML tag names are conventionally lowercase for readability and to avoid case-sensitivity bugs.

Title Case capitalises the first letter of each principal word, following style guides such as the Associated Press (AP) Stylebook or the Chicago Manual of Style. The AP style keeps articles (a, an, the), short prepositions, and conjunctions lowercase unless they begin the title. Sentence case capitalises only the first word of a sentence and proper nouns — the default for body text in British English and increasingly preferred in US UX writing and interface design.

Programming Case Conventions

camelCase removes all spaces and capitalises the first letter of every word except the first. It is the dominant convention for variable and function names in JavaScript, Java, Swift, and TypeScript (getUserProfile, parseJsonResponse). PascalCase (also called UpperCamelCase) capitalises the first letter of every word including the first. It is the standard for class names and component names in React, C#, and most object-oriented languages (UserProfile, ShoppingCart).

snake_case separates words with underscores and keeps all letters lowercase. It is the convention for variable and function names in Python, Ruby, and Rust, as well as for database column names in SQL schemas (user_profile_id, created_at). kebab-case (or spinal-case) uses hyphens instead of underscores. It is the standard for CSS class names, HTML custom attributes, URL slugs, and npm package names (my-component, get-user-data).

Why Case Consistency Matters

In software projects, inconsistent casing causes real bugs. JavaScript is case-sensitive: getElementById works but getElementByID throws a TypeError. In Python, class names that deviate from PascalCase will trigger PEP 8 linting warnings that block CI/CD pipelines in many organisations. Database engines such as PostgreSQL fold unquoted identifiers to lowercase; a column created as UserName becomes username, breaking any query that references it as UserName.

For content professionals, title case errors undermine brand voice guidelines. Large media organisations like the BBC and The New York Times maintain internal style guides that specify case rules for every headline type, social media post format, and metadata field. Marketing automation platforms that ingest inconsistently cased product names produce garbled personalisation tokens and search-index mismatches.

Case in URLs and SEO

Search engines generally treat URL paths as case-sensitive. /Blog/Post-Title and /blog/post-title are considered separate pages by Google, which can create duplicate-content penalties. The universal recommendation from Google's Search Central documentation is to use all-lowercase, hyphen-separated URL slugs — kebab-case — and to implement 301 redirects from any capitalised variants.

Sitemaps submitted to Google Search Console should list URLs in their canonical lowercase form. Unitomatic's case converter supports batch conversion so content teams can normalise large inventories of URLs, filenames, or product SKUs in seconds, ensuring consistent case conventions across entire websites and databases.

Core Conversion Formulas

The underlying mathematics used by our converter engine.

Conversion Exact Mathematical Formula
UPPERCASE Every character → uppercase variant (a→A, b→B …)
lowercase Every character → lowercase variant (A→a, B→b …)
Title Case First letter of each principal word → uppercase
camelCase Remove spaces; capitalise each word except first
snake_case Replace spaces with underscores; all lowercase

Frequently Asked Questions

What is the difference between camelCase and PascalCase?

Both remove spaces and capitalise word boundaries, but camelCase keeps the first letter lowercase (getUserData) while PascalCase capitalises the first letter too (GetUserData). PascalCase is typically used for class and component names; camelCase for variables and functions.

Which case should I use for CSS class names?

The universal convention is kebab-case (all lowercase words separated by hyphens), e.g. .nav-bar or .hero-button. This matches how HTML attributes are written and is required by the BEM methodology.

Does Google distinguish between uppercase and lowercase URLs?

Yes. Google treats URL paths as case-sensitive by default. /Blog/My-Post and /blog/my-post are considered separate pages. Always use lowercase kebab-case for URLs and set up 301 redirects from any uppercase variants to avoid duplicate-content issues.

What is sentence case?

Sentence case capitalises only the first word of a sentence and proper nouns — exactly as you would write a normal sentence. It is increasingly popular in modern UI design and UX writing because it feels more conversational and accessible than title case.

How do I convert a database column name from camelCase to snake_case?

Insert an underscore before each uppercase letter and convert the entire string to lowercase. For example, firstName becomes first_name, and createdAt becomes created_at. Most ORM frameworks like Django and Ruby on Rails do this automatically.

thermostat

Real-World Benchmarks

  • JavaScript variable

    camelCase convention

    getUserData()

    —

  • Python class name

    PascalCase convention

    UserProfile

    —

  • CSS class name

    kebab-case convention

    .nav-header

    —

  • SQL column

    snake_case convention

    user_id

    —

  • Google-recommended URL

    kebab-case, lowercase

    /my-page-title

    —

Related Converters