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
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
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.
Paste the camelCase text into the input, then click snake_case in the format list. The tool detects the camelCase word boundaries automatically and joins them with underscores, so userFirstName becomes user_first_name — no manual splitting needed.
Both join words with no spaces or punctuation. camelCase keeps the first word lowercase (myVariable), while PascalCase capitalizes it (MyClass). Use camelCase for variables and functions, PascalCase for classes and components.
Click Title Case. The first letter of every word is capitalized and the rest of the word is lowercased. That means short words like "of" and "the" are capitalized too (it does not follow AP or Chicago rules), and acronyms lose their capitals: "NASA" becomes "Nasa" and "iPhone" becomes "Iphone". Review those by hand before you publish.
Paste it and click Sentence case: each sentence starts with a capital and the rest goes to lower case. Then put back the capitals the tool can't guess, such as names, acronyms and the pronoun "I". If you just want everything small, use lower case instead.
Paste the title and click kebab-case. Words are joined with hyphens, accents are removed and punctuation is dropped, so Café Guide: 10 Tips! becomes cafe-guide-10-tips. Apostrophes count as word breaks, so Don't Panic becomes don-t-panic; delete the apostrophe first if you want dont-panic.
Yes. Line breaks are preserved in UPPER CASE, lower case, Sentence case and Title Case. In the code formats like camelCase or snake_case, each line is converted on its own, which makes it easy to rename a list of variables in one go.
Numbers are kept in every format. In the code formats, symbols like !, @ and # are removed, accents are stripped and apostrophes split words (don't stop becomes don_t_stop in snake_case). A number followed by a capital is not treated as a word break, so version2Beta becomes version2beta. The four text formats keep all punctuation as it was.
References
A comprehensive overview of every case style used across programming languages and ecosystems.
Google's official guidance on naming conventions and word choice for technical documentation.
The official Python style guide, covering snake_case for functions and variables, and CONSTANT_CASE for constants.
Related Tools
- ASCII Table Generator: Plain-Text & Markdown Tables Developer Turn CSV or typed data into a plain-text table: MySQL, Unicode box, rounded, double-line, Markdown, RST or minimal style. Copy it or download as .txt.
- Base64 Decode Online — Free Base64 to Text Decoder Developer Free online Base64 decoder — decode Base64 strings back to plain text instantly in your browser. Validates input and shows decoded payload size.
- Base64 Encoder: Encode Text, PDF & Files Online Developer Encode UTF-8 text or any file (PDF, DOCX, XLSX, ZIP up to 50 MB) to Base64 or Base64URL. Runs in your browser, nothing is uploaded. Free, no sign-up.
- Base64 to Image Online: Preview and Save PNG, JPG, GIF Developer Paste raw Base64 or a data:image URL to preview the image with its type, dimensions and size, then save the original file. No upload, runs in your browser.
- Bcrypt Generator & Checker: Hash and Verify Passwords Developer Generate a bcrypt hash with cost 4 to 18 or check whether a password matches a $2a$, $2b$ or $2y$ hash. Runs in your browser; nothing is uploaded.