All tools
Aa

Text Case Converter

Convert text between UPPERCASE, lowercase, camelCase, PascalCase, snake_case and kebab-case.

Text tools
input.txt
0 lines · 0 chars
output — UPPERCASE
0 lines · 0 chars
Overview

About this tool

Convert text between UPPERCASE, lowercase, camelCase, PascalCase, snake_case, and kebab-case — handy for turning a plain English label into a valid variable name, or normalizing a naming convention across a codebase or spreadsheet.

01

The six cases

UPPERCASE and lowercase change letter casing only. camelCase and PascalCase remove spaces/punctuation and capitalize each word boundary (camelCase keeps the first word lowercase, PascalCase capitalizes it too). snake_case and kebab-case do the same word-boundary detection but join words with an underscore or hyphen instead of capitalization.

02

How word boundaries are detected

Spaces, punctuation, and existing separators (underscores, hyphens) are all treated as word boundaries before the text is rebuilt in the target case — so "user-first_name" and "User First Name" both convert to the same result in any given case.

Frequently asked questions

Which case should I use for a variable name?

It depends on the language's convention: camelCase is standard for variables and functions in JavaScript and Java, PascalCase for classes and components, and snake_case for variables in Python and Ruby.

What happens to numbers and existing punctuation?

Numbers are kept as part of the surrounding word; other punctuation is treated as a word boundary and replaced with whatever separator the target case uses (or removed entirely, for camelCase and PascalCase).