Case Converter
TextConvert text between camelCase, PascalCase, snake_case, kebab-case, Title Case, UPPER, and lower case instantly in your browser — nothing is uploaded anywhere.
What is a Case?
The Case Converter is a text formatting tool that instantly rewrites any phrase or identifier into your chosen capitalisation style — camelCase, PascalCase, snake_case, kebab-case, Title Case, UPPER CASE, or lower case. It is built for developers, writers, and data professionals who need to rename variables, generate CSS class names, prepare headings, or normalise database column names without manually editing every word.
Every programming language and style guide has its own naming convention. JavaScript uses camelCase for variables (totalAmount) and PascalCase for classes (TotalAmount). Python favours snake_case (total_amount). CSS and HTML prefer kebab-case (total-amount). Switching between these formats by hand is slow, error-prone, and interrupts your flow — especially when converting a multi-word phrase like "total investment amount" into each style.
The Case Converter solves this by detecting word boundaries automatically. It recognises spaces, hyphens, underscores, and camelCase transitions, so it can correctly parse getUserFullName, get-user-full-name, and get_user_full_name as the same four words and then reformat them into whichever style you need.
All conversion runs entirely in your browser. Nothing you type is sent to a server or stored anywhere — making it safe to use with proprietary variable names, internal identifiers, or sensitive schema fields. You can also try the Text to Slug Converter if you need URL-safe lowercase output with hyphen separators.
How to use this Case calculator
- Paste your text into the Input Text box — this can be a plain English phrase, an existing identifier in any case style, or a list of words.
- Open the Target Case dropdown and select the style you want: camelCase, PascalCase, snake_case, kebab-case, Title Case, UPPER CASE, or lower case.
- The Converted Text output updates instantly — no button press needed.
- Click the Copy button beneath the output to copy the result to your clipboard.
- Switch the Target Case dropdown to compare how the same phrase looks in different styles without re-pasting.
Formula & Methodology
The converter splits the input on all recognised word boundaries before rejoining in the target format. Word boundaries are detected at: - Whitespace runs (spaces, tabs, newlines) - Underscores (_) and hyphens (-) - camelCase transitions: a lowercase letter immediately followed by an uppercase letter (a→B), and a run of uppercase letters followed by an uppercase-then-lowercase pair (ABCDef→ABC+Def) Once split into a word array, the converter applies the target case rules: | Target | Rule | |---|---| | camelCase | First word all-lowercase; subsequent words capitalise first letter, rest lowercase | | PascalCase | Every word capitalises first letter, rest lowercase | | snake_case | All words lowercase, joined with_| | kebab-case | All words lowercase, joined with-| | Title Case | Every word capitalises first letter, rest lowercase, joined with space | | UPPER CASE |text.toUpperCase()applied to entire input | | lower case |text.toLowerCase()applied to entire input | Before:getUserFullNameAfter (snake_case):get_user_full_nameBefore:monthly investment amountAfter (camelCase):monthlyInvestmentAmount