Convert text between every case
This tool reformats any text, identifier or phrase into nine cases at once — camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, Title Case, Sentence case, lower case and UPPER CASE. It is built for developers renaming variables between language conventions, writers fixing capitalisation, and anyone converting a heading into a URL-ready or code-ready form without retyping it.
How it works
Your input is first tokenised into words. The converter inserts a boundary
between a lowercase letter and an uppercase one (so userName splits into user
and Name), then splits on every non-alphanumeric character — spaces, hyphens,
underscores and punctuation. Because of this, you can paste an identifier in any
existing style and reformat it into another. Each case then rejoins those words with
its own separator and capitalisation rule.
Example
Paste getUserProfile-data and you get every form at once:
| Case | Output |
|---|---|
| camelCase | getUserProfileData |
| PascalCase | GetUserProfileData |
| snake_case | get_user_profile_data |
| CONSTANT_CASE | GET_USER_PROFILE_DATA |
| kebab-case | get-user-profile-data |
| Title Case | Get User Profile Data |
| Sentence case | Get user profile data |
Click Copy next to whichever one you need. Every conversion happens in your browser; nothing is uploaded.
When each case is the right choice
The conversion that matters depends on your context. Here is a quick guide:
| Case | Use for |
|---|---|
| camelCase | JavaScript/TypeScript variable and function names (getUserData) |
| PascalCase | Class names, React components, TypeScript types (UserProfile) |
| snake_case | Python variables and functions, database column names (user_name) |
| CONSTANT_CASE | Environment variables, compile-time constants (API_BASE_URL) |
| kebab-case | URL slugs, CSS class names, HTML data- attributes (user-profile) |
| Title Case | Article headings, page titles, button labels |
| Sentence case | Body copy, caption text, UI labels that read as prose |
Common mistakes this tool prevents
Cross-language refactoring. Pasting a Python snake_case function name into a TypeScript file is a common slip. Paste the name here and copy the camelCase result directly — one click, no manual editing.
Mixed-style identifiers in APIs. REST APIs often return snake_case JSON keys that need to become camelCase properties in JavaScript. This tool converts an entire list of field names at once if you paste them line by line.
CMS and URL slugs. Heading text like “Top 10 Tips for New Developers” rarely comes out of a CMS as a clean URL. Paste it and the kebab-case output gives you top-10-tips-for-new-developers ready to paste into a route or file name.
Caps Lock accidents. Paste a sentence typed IN ALL CAPS and use the Sentence case or lower case output to recover clean text instantly.