Case Converter
Convert text to UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case and more.
Suggested tools
About Case Converter
Case Converter changes text between UPPERCASE, lowercase, Title Case, Sentence case and Capitalize, and the programming styles camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, dot.case and path/case — plus aLtErNaTiNg case for fun.
It is handy for fixing text typed with Caps Lock on, formatting headings, and renaming variables, JSON keys, CSS classes or URL slugs. It runs entirely in your browser, so nothing you paste is uploaded.
How to use Case Converter
- Paste or type your text.
- Click the case style you want.
- Copy the converted text.
Key features
- Writing styles: UPPER, lower, Title, Sentence, Capitalize
- Code styles: camel, Pascal, snake, CONSTANT, kebab, dot, path
- Handles words split by spaces, dashes or underscores
- One click to copy
Example
user first name
camelCase: userFirstName PascalCase: UserFirstName snake_case: user_first_name CONSTANT_CASE: USER_FIRST_NAME kebab-case: user-first-name Title Case: User First Name
When to use Case Converter
- Fixing text typed with Caps Lock on.
- Turning a heading into a URL slug with kebab-case.
- Renaming variables, database columns or JSON keys to a code style.
Tips and common problems
- Use snake_case for Python and SQL, camelCase for JavaScript and JSON, PascalCase for class names.
- CONSTANT_CASE is the usual style for environment variables.
- Check acronyms afterwards — tools cannot know that "url" should be "URL".
Frequently asked questions
Both capitalise the first letter of every word. Title Case keeps your punctuation and separators as they are; Capitalize also turns dashes and underscores into spaces, so "user_first-name" becomes "User First Name".
kebab-case (words-separated-by-hyphens) is the standard for URL slugs and is easy for people and search engines to read.
Those scripts have no upper and lower case, so they are left unchanged; the separators of code styles still apply.
Guides
- Regex Patterns for Indian Phone Numbers, PIN, PAN, GSTIN and IFSC — Ready-to-use regex for Indian mobile numbers, PIN codes, PAN, GSTIN, IFSC and more, explained part by part, with the limits of what a pattern can check.