CalculatorWala
Blog

Text Case Converter

Free Text Case Converter: switch between UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case, and more instantly. Copy the result in one click.

UPPERCASE

THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG

lowercase

the quick brown fox jumps over the lazy dog

Title Case

The Quick Brown Fox Jumps Over The Lazy Dog

Sentence case

The quick brown fox jumps over the lazy dog

camelCase

theQuickBrownFoxJumpsOverTheLazyDog

PascalCase

TheQuickBrownFoxJumpsOverTheLazyDog

snake_case

the_quick_brown_fox_jumps_over_the_lazy_dog

kebab-case

the-quick-brown-fox-jumps-over-the-lazy-dog

CONSTANT_CASE

THE_QUICK_BROWN_FOX_JUMPS_OVER_THE_LAZY_DOG

aLtErNaTiNg CaSe

tHe qUiCk bRoWn fOx jUmPs oVeR ThE LaZy dOg

Naming Conventions, Quick Facts

  • camelCase is the JavaScript/Java convention for variables and functions: no spaces, first word lowercase, each following word capitalised.
  • snake_case is standard in Python and Ruby; kebab-case is standard for URLs, CSS classes, and HTML attributes.
  • CONSTANT_CASE (all caps with underscores) conventionally marks a constant that never changes at runtime.
  • PascalCase (capitalised camelCase) is the convention for class and component names across most languages.

The Real Problem This Solves

Every language and style guide has its own naming convention, and switching between an API's snake_case JSON fields and your codebase's camelCase variables by hand, one field at a time, wastes time and introduces typos.

This tool converts in every direction at once, so you can paste any format in and grab whichever case you actually need.

How the Conversion Works

The converter first splits your text into individual words, detecting boundaries at spaces, hyphens, underscores, and lowercase-to-uppercase transitions (so it can read camelCase or PascalCase input too), then rejoins those words using the target convention's own rules for spacing, separators, and capitalisation.

Example: the input userFirstName is split into "user," "First," "Name," then rejoined as user_first_name in snake_case, letting you move fluidly between a database column name and a JavaScript variable.

CaseExampleCommon Use
camelCasefirstNameJavaScript/Java variables & functions
PascalCaseFirstNameClass and component names
snake_casefirst_namePython variables, database columns
kebab-casefirst-nameURLs, CSS classes, HTML attributes
CONSTANT_CASEFIRST_NAMEConstants across most languages

Frequently Asked Questions

Can I paste camelCase or snake_case text and convert it to something else?

Yes. The tool detects word boundaries from spaces, hyphens, underscores, and capital letters, so any input format converts cleanly to any other.

What is the difference between Title Case and Sentence case?

Title Case capitalises the first letter of every major word ("The Quick Brown Fox"). Sentence case only capitalises the first letter of each sentence, like normal prose ("The quick brown fox.").

Does this handle punctuation correctly?

Word-splitting treats punctuation as part of the surrounding word, so heavily punctuated text may need a manual once-over for edge cases like contractions or trailing periods.

Why does my database use snake_case but my frontend use camelCase?

This is a very common convention split: SQL databases and Python/Ruby backends traditionally use snake_case, while JavaScript ecosystems use camelCase. Many API layers convert automatically at the boundary; this tool helps when converting by hand.

Is my text stored or sent anywhere?

No, all conversion happens instantly in your browser.

Need to check the length of your renamed text?

Once you've settled on a naming style, check word and character counts with our Word Counter.

Open Word Counter
Disclaimer: Word-boundary detection is heuristic-based and handles standard naming conventions well. Highly irregular input (mixed numbers, unusual punctuation) may need manual review.