Case Converter: Upper, Lower, Title, camelCase & snake_case

Case Converter: Upper, Lower, Title, camelCase & snake_case

Change text to UPPER CASE, lower case, Sentence case or Title Case, or to camelCase, snake_case, kebab-case and CONSTANT_CASE. Free, in your browser.

Updated November 2026

Reviewed by Rafael Duarte

Input Text
0 characters
Shift + Enter to Copy · Shift + ← → for formats
Converted Result
words
0
characters
0
Format
Sentence case

How to Convert Text Case

Convert to any format in one click

1. Paste or type your text

Use the Input Text box. Multiple lines are fine, and the result updates as you type.

2. Click a format

Pick one of the 10 buttons: UPPER CASE, lower case, Sentence case and Title Case for everyday text, or camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and dot.case for code. Sentence case is selected by default.

3. Copy the result

Click Copy. The keyboard shortcuts (Shift+Enter to copy, Shift+←/→ to switch formats) only work when the cursor is outside the text boxes, for example right after you click a format button.

What This Case Converter Does

Four text formats, six code formats, all in your browser

UPPER CASE and lower case

Fix text typed with Caps Lock on, or shout a heading. Line breaks, punctuation and accents stay exactly where they were.

Sentence case and Title Case

Sentence case capitalizes the first letter after ., ! or ?. Title Case capitalizes every word. Both lowercase everything else first, so check names and acronyms afterwards.

camelCase and PascalCase

The usual style for variables and functions (camelCase) and for classes and components (PascalCase) in JavaScript, TypeScript, Java and C#.

snake_case and CONSTANT_CASE

snake_case for Python functions and database columns; CONSTANT_CASE for constants and environment variables.

kebab-case and dot.case

kebab-case for URL slugs, CSS classes and command-line flags; dot.case for config keys. Accents are removed, so café becomes cafe.

Reads existing identifiers

Input that is already helloWorld, hello_world, hello-world or hello.world is split into words first, so you can go from any code style to any other.

Examples

Input
Format → Output
user_first_name
camelCase → userFirstName
How To Use React Hooks
kebab-case → how-to-use-react-hooks
database connection string
CONSTANT_CASE → DATABASE_CONNECTION_STRING
helloWorld
snake_case → hello_world

When You'll Need This

The most common scenarios among people who use this tool

Renaming variables across languages

Porting Python to JavaScript: convert user_first_name to userFirstName in bulk.

Generating URL slugs

Convert a post title to kebab-case for a clean, readable URL.

Creating environment variables

Turn plain descriptions into ready-to-use CONSTANT_CASE for .env files or a secrets manager.

Fixing capitalization in documents

Text typed in ALL CAPS by mistake, or applying Title Case consistently across headings.

Common Mistakes

Confusing camelCase with PascalCase

The only difference is the first letter: lowercase in camelCase, uppercase in PascalCase.

Expecting editorial rules from Title Case

It capitalizes every word, including a, of and the, so it does not follow AP or Chicago style. It also lowercases the rest of each word first: the NASA guide to iPhone and USB-C becomes The Nasa Guide To Iphone And Usb-C. Fix short words and acronyms by hand.

Sentence case lowercases names and the pronoun I

Everything except the first letter of each sentence goes to lower case, so My friend and I visited NASA. becomes My friend and i visited nasa. Reread the result for names, acronyms and "I".

Expecting special characters in programmatic formats

!, @, # are stripped when converting to camelCase or snake_case, since identifiers can't contain them.

Why Use This Case Converter

One page covers both jobs: fixing everyday text (UPPER CASE, lower case, Sentence case, Title Case) and renaming code identifiers. Input that is already in camelCase, PascalCase, snake_case, kebab-case or dot.case is split into words before converting, so you never separate them by hand.

The conversion runs entirely in your browser, and nothing you paste is sent to a server. Need to count words rather than change them? Try the word counter.

Frequently Asked Questions

Yes. It automatically detects and splits input written in camelCase, PascalCase, snake_case, kebab-case, and dot.case into individual words before applying the target format.

References

Related Tools