Case Converter
Transform text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case, and more
Paste any text and convert it to UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case, or six other formats — one click per conversion. Multi-line input works too, so you can batch-rename a whole list of variables or column headers at once.
Toggle Live mode to auto-convert as you type, or use Swap to chain multiple conversions back-to-back. And everything runs in your browser. Nothing gets uploaded.
How It Works
The tool breaks your input into separate words by detecting spaces, underscores, hyphens, dots, and camelCase boundaries. Then it reassembles those words using the rules for your target format. So getUserProfile becomes get_user_profile in snake_case, or get-user-profile in kebab-case. Takes about two milliseconds. And if you toggle Live mode on, the output updates as you type.
Examples
Porting a JavaScript function name to Python
Moving a helper into a Python codebase that follows PEP 8.
getUserProfileDataget_user_profile_dataFixing an all-caps headline
Writer sent the blog title in caps lock from their notes app. You need clean Title Case for the CMS. Quick fix — paste it in and hit the button.
HOW TO FIX YOUR CSS GRID LAYOUTS IN FIREFOXHow To Fix Your Css Grid Layouts In FirefoxTurning Figma layer names into CSS classes
Your designer exports layers with names like Primary Action Button Hover State and you need kebab-case for the stylesheet. Honestly, doing this by hand for 30 layers is annoying.
Primary Action Button Hover Stateprimary-action-button-hover-stateGenerating environment variable names
Plain English config label needs to become CONSTANT_CASE for a .env file.
database connection timeoutDATABASE_CONNECTION_TIMEOUTWho Uses This
Renaming variables when porting code between Python, JavaScript, and C# — each language wants a different naming convention.
Fixing messy draft headlines that came in all-caps or random casing before publishing.
Converting Figma layer names into kebab-case CSS classes or CONSTANT_CASE design tokens.
Cleaning up messy CSV column headers into consistent snake_case for database imports.
Common Mistakes
Feed in XML HTTP Request and you might get xmlHttpRequest instead of xmlHTTPRequest. Most converters treat each word independently. Always double-check acronyms after converting.
Text from Word or Google Docs often carries smart quotes and non-breaking spaces. These sneak into your output and cause bugs. Not obvious at all. Strip formatting first if something looks off.
Title Case Capitalizes Every Word. Sentence case only does the first one. For button labels and UI strings, sentence case is almost always what you actually want. Pick the right one before converting 50 strings.
Technical Details
- Processing: 100% client-side — text never leaves your browser
- Browser Support: Chrome, Firefox, Safari, Edge
- Conversion Modes: 12 formats (UPPER, lower, Title, Sentence, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, aLtErNaTiNg, iNVERSE)
- Input Limit: No cap — handles thousands of lines without lag
Frequently Asked Questions
What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter — like getUserName. PascalCase capitalizes the first letter too — GetUserName. In JavaScript, camelCase is for variables and functions. PascalCase is for classes and React components. Simple as that.
When should I use snake_case vs kebab-case?
snake_case is standard in Python, Ruby, and database column names. kebab-case shows up in CSS classes, URL slugs, and frontend file names. So if you're writing Python, go snake. Naming a CSS class? Go kebab.
Is my text stored or sent to a server?
No. The conversion runs entirely in your browser using JavaScript. Nothing gets uploaded, logged, or stored anywhere. You can even disconnect from the internet after loading the page and it still works fine.
Can I convert multiple lines at once?
Yes. Paste as many lines as you want — each line gets converted individually while keeping line breaks intact. Handy for batch-renaming variable lists or reformatting an entire CSV header row at once.
What is CONSTANT_CASE used for?
CONSTANT_CASE — also called SCREAMING_SNAKE_CASE — is mainly for constants and environment variables. Think MAX_RETRY_COUNT or API_BASE_URL. It signals this value should not change in most languages.