Case Converter

Convert text to UPPERCASE, lowercase, Title Case, camelCase, snake_case, or kebab-case in one click.

UPPERCASE

lowercase

Title Case

camelCase

PascalCase

snake_case

kebab-case

Example input

hello developer world

Example output

helloDeveloperWorld

What is a Case Converter?

A case converter takes a piece of text and rewrites it into a different capitalization style — UPPERCASE, lowercase, Title Case, or one of the programming-specific naming conventions like camelCase, snake_case, and kebab-case. This isn't just a cosmetic tool: different programming languages and platforms have strict conventions about which case style to use where, and manually retyping a variable name or converting a sentence to a URL slug by hand is slow and error-prone, especially across a long phrase.

When to use it

Developers reach for this most often when renaming a variable or function to match a language's convention — JavaScript and Java expect camelCase, Python and Rust expect snake_case, CSS classes and URLs commonly use kebab-case. It's also useful outside code: converting a heading to Title Case for a document, turning a phrase into ALL CAPS for emphasis, or prepping text for a case-sensitive comparison or search. If you're renaming a batch of database columns or API fields to match a new naming convention, converting each name here is faster than doing the character-by-character rewrite by hand.

How it works

The converter first splits your input into individual words — breaking on spaces, hyphens, and underscores — then reassembles those words using the target style's specific rules: camelCase lowercases the first word and capitalizes the first letter of each subsequent word with no separator, snake_case lowercases everything and joins with underscores, kebab-case does the same but with hyphens, and Title Case capitalizes the first letter of every word while preserving spaces. Because it works on already-split words rather than just changing letter case, it correctly handles multi-word phrases, not just single words.

Frequently asked questions

What's the difference between camelCase and PascalCase?

camelCase starts with a lowercase letter (helloWorld), while PascalCase capitalizes the first letter too (HelloWorld). camelCase is the convention for variables and functions in most languages; PascalCase is typically used for class and component names.

Why do some programming languages use snake_case and others use camelCase?

It's largely historical convention rather than a technical requirement — Python and Ruby communities standardized on snake_case, while JavaScript, Java, and C-family languages standardized on camelCase. Following your language's dominant convention makes your code easier for other developers to read.

Will this tool correctly convert text that's already in camelCase back to words?

This converter splits on spaces, hyphens, and underscores — it doesn't detect camelCase word boundaries within a single unbroken word like getUserData. If your input is already camelCase and you want it split into separate words first, you'll need to add spaces manually before converting to another case style.

Can I use this for converting text to a URL slug?

kebab-case output is close to a URL slug, but for proper slug generation — stripping accents, special characters, and handling edge cases — this site has a dedicated Slug Generator tool built specifically for that.