Transform the case of a string
Lowercase, uppercase, camelCase, PascalCase, snake_case, and more

The Case Converter takes any text and instantly shows multiple casing formats side-by-side—then lets you copy the one you need with a single click. It’s designed for quick “paste → convert → copy” workflows.
The fastest way to avoid naming debates: convert the same phrase into camelCase, PascalCase, snake_case, and kebab-case and pick what matches your project conventions.
Who is this for?
Everything runs locally in your browser. If you’re also working with encoded payloads, you may find these tools useful too: Base64 String Encoder/Decoder, Hash Text, or UUID Generator.
You don’t need to configure anything. Paste a phrase once, and the tool generates all formats below it.
Enter your text
Type or paste a phrase into the “Your string” input. Think: a feature name, API field, title, or file name.
Scan the formats
Each row shows one casing style. The label on the left tells you what you’re looking at.
Copy the one you need
Click the copy button to the right of the row. You can paste it directly into your editor.
Share or reset
Use the Share button to send a link. Use Reset to restore the default example text.
Worked example (with indexing)
For “Mockingcase”, the output alternates uppercase and lowercase by character index. If your input is abcdef, then there are characters.
So the result is AbCdEf.
Worked example (word-based conversion)
Suppose the phrase splits into words:"project name draft". Label them as, , .
You can read results literally: snake case uses underscores, kebab case uses hyphens, and camel case uses capitalization to separate words.
Here are a few practical situations where case conversion saves time and prevents subtle inconsistencies.
API field naming
Background: your backend prefers snake_case, but your frontend preferscamelCase.
Input: customer order status
Result: customer_order_status or customerOrderStatus
How to use it: generate consistent DTO keys, then pair with Hash Text if you need deterministic identifiers for caching.
Component and file names
Background: your UI components use PascalCase, and file names usekebab-case.
Input: user profile card
Result: UserProfileCard and user-profile-card
How to use it: copy both so your import paths and component symbols stay aligned.
Routes and slugs
Background: URLs typically prefer hyphens because they’re easy to read.
Input: Account Settings Security
Result: account-settings-security
How to use it: pair with Token Generator when you’re building share links with unique IDs.
Documentation headings
Background: docs often use Header Case for readability.
Input: how to reset password
Result: How To Reset Password or How to reset password
How to use it: use Header Case for section titles, Sentence case for button labels.
Case conversion is especially useful when you need consistency across systems. Here are common scenarios where it shines—and a few cases where you should be cautious.
Config keys
Normalize environment variable names and config fields.
Security reviews
Clean up identifiers before adding allowlists and policies.
Bug triage
Match log keys to source code naming conventions quickly.
Dataset columns
Prepare CSV header names for SQL or analytics dashboards.
Docs and UI copy
Generate headings and labels that look consistent and professional.
Refactors
Keep naming consistent while renaming types, fields, and constants.
When it might not be a fit
Start from a human-readable phrase
A good trick: write the concept as plain English first (with spaces). Then pick the casing you need.
Be consistent across layers
If your database uses snake_case and your API usescamelCase, decide where the mapping happens and stick to it.
Avoid subtle mismatches
A single missing underscore can break a serializer. Copy-paste from a converter is faster than re-typing.
Pro tip: When creating IDs or secrets, don’t rely on casing—use the Token Generator or ULID Generator instead.
Case conversion is less about “math” and more about predictable text rules. Still, it helps to think in terms of tokens (words) and transformations.
Tokenization idea
The tool first splits your text into words. Conceptually, you can think of it as producing a sequence:
Then each case format is just a different way to join and capitalize these tokens.
Common joining rules
Mockingcase rule
Mockingcase alternates letter casing by index. For characters, the output is:
What is “case” in naming?
In programming, “case” usually means two things: whether letters are uppercase/lowercase, and the pattern used to separate words (underscores, hyphens, or capitalization).
If your naming rule is described as a mapping from words to a final identifier, you can represent it as a function .
Quick glossary
A common convention is snake_case. It stays readable and avoids case-sensitive issues.
They’re used for different writing styles. Sentence case reads like normal prose; capital/title case capitalizes words more aggressively.
Many case formats focus on letters and word boundaries. If punctuation is meaningful in your identifier, treat the output as a starting point.
No. It’s deterministic based on index parity: decides whether a character is upper or lower.
Yes—use Share and choose the “include results” option (when available). This creates a URL with your input encoded as a query parameter.
Kebab-case is usually a good default for paths. If you’re putting values into query strings, you may also want to use an encoder.
This tool helps with formatting and consistency, but it can’t know your team’s rules (like reserved words, maximum length, or special acronyms). Always sanity-check before shipping.
If you want a deeper background on naming conventions and casing styles, these references are a good starting point:
For practical workflow helpers, you can also browse our “Other” tools category.
Use a simple chronometer (stopwatch) to track elapsed time down to milliseconds. Runs locally in your browser.
Normalize email addresses to a standard format for easier comparison. Useful for deduplication and data cleaning. Runs locally in your browser.
Estimate the time needed to consume a total amount at a constant rate, and get an expected end time. Runs locally in your browser.
Parse and decode your JSON Web Token (JWT) and display its content. All computation runs locally in your browser.
Know which file extensions are associated to a MIME type, and which MIME type is associated to a file extension. Includes a full MIME types table.
Generate random Lorem Ipsum placeholder text with customizable paragraphs, sentences, and word counts. Runs locally in your browser.