Text Tools

Case Converter

Convert text between 12 distinct case styles including Title Case, Sentence case, camelCase, snake_case, kebab-case, and UPPERCASE.

Free to use No registration Mobile friendly Unlimited usage

What is the Case Converter?

Typing in the wrong case happens constantly. You might accidentally leave Caps Lock engaged while typing a two-paragraph message, leaving you with an aggressive wall of text. Or perhaps you are an author formatting a 25-chapter book outline and need to ensure every title adheres to formal publishing conventions. In software development, case formatting is an essential architectural standard: database columns require snake_case, JavaScript object properties demand camelCase, React component classes require PascalCase, and CSS classes follow kebab-case.

The TU Web Tools Case Converter transforms text between twelve distinct typographic and programming case styles with a single click. It eliminates manual re-typing and tedious regex replace operations, saving you time while guaranteeing stylistic consistency across your articles, spreadsheets, and source code repositories.

Comprehensive Case Format Reference Matrix

Case Style Example Output Primary Production Use Case
Sentence case The quick brown fox jumps over the lazy dog. Fixing accidental Caps Lock text, formatting standard body copy, email messages, and blog paragraphs.
Title Case The Quick Brown Fox Jumps Over the Lazy Dog Blog post headlines, YouTube video titles, formal reports, and academic research papers.
UPPERCASE THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG Legal disclaimer notices, acronyms, callout alert banners, and table headers.
lowercase the quick brown fox jumps over the lazy dog Normalizing customer email lists, search queries, keywords, and file system path strings.
camelCase theQuickBrownFoxJumpsOverTheLazyDog JavaScript and TypeScript variable names, JSON payload keys, and Java method declarations.
PascalCase TheQuickBrownFoxJumpsOverTheLazyDog React/Vue component definitions, C# and PHP class names, and TypeScript interfaces.
snake_case the_quick_brown_fox_jumps_over_the_lazy_dog Python variable and function names, PostgreSQL/MySQL database column names.
kebab-case the-quick-brown-fox-jumps-over-the-lazy-dog Search-friendly URL slugs, CSS class selectors, and HTML custom data attributes.
CONSTANT_CASE THE_QUICK_BROWN_FOX_JUMPS_OVER_THE_LAZY_DOG Environment variables (e.g. DATABASE_PORT), application constants, and enum definitions.
Capitalise Words The Quick Brown Fox Jumps Over The Lazy Dog Capitalizes the first character of every single word without applying grammatical exception rules.
aLtErNaTiNg cAsE tHe qUiCk bRoWn fOx jUmPs oVeR ThE LaZy dOg Meme text formatting, social media banter, and testing case-insensitive search queries.

Title Case vs. Capitalize Words: The Grammar Rules Explained

Many elementary online converters make the mistake of simply capitalizing every single word in a sentence. While that is acceptable for simple name lists (our Capitalise Words button handles that), professional editorial publishing requires true Title Case governed by grammatical stylebooks such as The Associated Press (AP) or The Chicago Manual of Style.

In true Title Case, grammatical function words—specifically short conjunctions, articles, and prepositions under four letters—remain in lowercase unless they represent the first or last word of the title:

  • Articles: a, an, the
  • Coordinating Conjunctions: and, but, for, or, nor
  • Short Prepositions: as, at, by, for, in, of, on, per, to, up, via

For example, converting "the art of computer programming and algorithm design" using our Title Case converter produces "The Art of Computer Programming and Algorithm Design". Notice that of and and remain properly lowercase, while The is capitalized because it begins the title. This adherence to authentic editorial standards ensures your article headlines look polished and professional.

Developer Case Workflow: Database Columns to API Contracts

In full-stack engineering, a recurring task is bridging the naming conventions of relational databases and modern JavaScript frontend applications. In SQL, database column names follow snake_case conventions:

user_billing_address
stripe_customer_id
is_subscription_active
last_login_timestamp

Retyping those column names as JavaScript/TypeScript camelCase models by hand is tedious and prone to typos. By pasting your SQL schema dump into our converter and clicking camelCase, you instantly receive clean, production-ready property keys:

userBillingAddress
stripeCustomerId
isSubscriptionActive
lastLoginTimestamp

REST API and GraphQL Naming Conventions

Architecting consistent API response contracts requires strict case discipline. In RESTful systems, JSON properties typically adopt camelCase (standard in NodeJS and TypeScript) or snake_case (standard in Python Django and Ruby on Rails). In GraphQL schemas, field names must strictly follow camelCase, while custom object types and interfaces require PascalCase.

Mixing naming conventions across API boundaries introduces costly parsing bugs. For instance, if a mobile app expects userId but an updated microservice returns user_id, deserialization fails silently in strongly typed languages like Swift or Kotlin. Utilizing our case converter allows you to normalize configuration dictionaries, DTOs (Data Transfer Objects), and schema mocks quickly during integration testing.

Automating Case Transformations in Terminal and Build Scripts

When refactoring legacy codebases or renaming thousands of asset files, performing case conversions from the terminal saves hours of manual renaming. Here are standard command-line methods for case transformations:

  • Converting to Lowercase in Shell: Using Bash 4 parameter expansion: echo "${filename,,}". Using standard tr: tr '[:upper:]' '[:lower:]' < input.txt.
  • Converting CamelCase to Snake_Case with Sed: sed -E 's/([a-z0-9])([A-Z])/\1_\2/g' input.txt | tr '[:upper:]' '[:lower:]' accurately identifies word transitions and inserts underscore delimiters.
  • Python One-Liner for Clean Title Casing: python3 -c "import sys; print(sys.stdin.read().title())" < input.txt transforms headlines according to standard English title casing rules.

Real-World Engineering Incident: Golang Struct Tag Deserialization Outage

In a distributed microservice project I managed, our payment processing service suddenly began dropping customer billing address IDs during a high-volume product release. The upstream API service sent JSON payloads formatted in camelCase: {"billingAddressId": 9821}. However, the downstream Golang microservice had defined its data transfer object struct tag in snake_case: type Account struct { BillingAddressID int `json:"billing_address_id"` }. Because the casing did not match and Golang JSON unmarshaling treats unmatched fields as zero-value defaults by default, the billing address ID was silently discarded as 0. The transaction passed initial validation but failed at the settlement gateway, blocking thousands of orders. Standardizing naming conventions across API boundaries and using automated case conversion tools eliminates these silent serialization mismatches.

Benefits of using the Case Converter

Twelve formats in one place

Prose cases and programming cases together, so you are not switching tools when you move between writing and code.

Converts in any direction

Existing capitals are read as word boundaries, so camelCase to snake_case works as easily as the reverse.

Bulk conversion for code

The programming formats process each line separately, so a whole column of names converts in one pass.

Fixes caps lock accidents

Inverse case restores text typed with caps lock on, including the wrongly lowercased first letter.

How to use the Case Converter

Step 1

Paste or type your text into the Your text input pane, or click Load sample to load sample headlines.

Step 2

Under options, open the Convert to dropdown and select your target capitalization style (e.g., camelCase, Title Case, snake_case).

Step 3

Click Convert Case. The converted string is instantly produced inside the Converted text pane.

Step 4

Click Copy to copy the result to your clipboard, or click Download result to save it as a local text file.

Popular use cases

  • Fixing ALL CAPS product feeds
  • Headline and title formatting
  • Variable naming in code
  • URL slugs and CSS class names
  • Database column naming
  • Environment variable keys
  • Porting code between languages
  • Cleaning up imported spreadsheet headers

Frequently asked questions

camelCase capitalizes every word except the first with no spaces (common in JavaScript/TypeScript variables). PascalCase capitalizes the first letter of every word (used for classes in C#, Java, and React components). snake_case uses all lowercase letters separated by underscores (standard in Python and SQL columns). kebab-case uses lowercase letters separated by hyphens (standard in CSS classes and URL slugs).

Yes. You can paste hundreds of lines containing variable names, database column identifiers, or class declarations. Selecting your target case transforms every line instantaneously, making large code refactors and schema conversions fast and effortless.

Ready to start using TU Web Tools?

Free, browser based utilities for developers, SEO professionals, students and businesses.

Free to use  •  Mobile friendly  •  No installation required