Advanced Case Converter
Convert text into fourteen different cases at once — from everyday UPPERCASE and Title Case to the programmer conventions camelCase, snake_case, kebab-case and CONSTANT_CASE. Type once and copy whichever form you need. Conversion is instant and happens entirely in your browser.
How to use this tool
- Type or paste your text into the box.
- Every case form updates instantly beneath it.
- Find the form you need — the label shows an example of each.
- Press Copy on that row to put it on your clipboard.
- Programmer cases such as camelCase or snake_case strip punctuation and rebuild from words; prose cases such as Sentence case keep your spacing.
The formula
Prose cases (UPPERCASE, Sentence case, Title Case) transform letters in place, preserving spacing and punctuation. Programmer cases first split the text into words — on spaces, punctuation and camelCase humps — then rejoin them with a chosen separator and capitalisation.
tokens = split on spaces, punctuation, case changes
snake_case = tokens.join("_").toLowerCase()
camelCase = first lower, rest Capitalised, joined- token
- A single word extracted from the input
- separator
- The character joining tokens: _ - . / or none
- hump
- A lowercase-to-uppercase boundary, as in camelCase
Title Case keeps minor words (a, an, the, of, to…) lowercase unless they are first or last, following common style guides.
Worked examples
A variable name from a label
- Given
- “User first name” → camelCase
- Result
- userFirstName
The three words are detected, the first is lowercased and the rest are capitalised, then they are joined with no separator.
A constant from a phrase
- Given
- “max retry count” → CONSTANT_CASE
- Result
- MAX_RETRY_COUNT
Each word is uppercased and joined with underscores — the usual convention for configuration constants.
A URL slug from a title
- Given
- “The Best Coffee in Town!” → kebab-case
- Result
- the-best-coffee-in-town
Punctuation is dropped, every word is lowercased and they are joined with hyphens, giving a clean slug for a web address.
Frequently asked questions
Capitalize Each Word capitalises the first letter of every word without exception. Title Case follows headline style: it keeps short joining words such as “a”, “of” and “the” lowercase unless they are the first or last word. Title Case reads more naturally for headings.
Both remove spaces and capitalise each word’s first letter, but camelCase leaves the very first letter lowercase (myVariable) while PascalCase capitalises it too (MyVariable). camelCase is common for variables and functions; PascalCase for class and type names.
snake_case (words joined by underscores) is common in Python, Ruby and database columns. kebab-case (joined by hyphens) suits URLs, CSS class names and filenames, since hyphens are safe in web addresses where underscores can be harder to read.
Yes. The converter splits on camelCase boundaries as well as spaces and punctuation, so “getHTTPResponse” or “user_id” are broken back into their words before being rebuilt in the case you choose.
Sentence case capitalises the first letter after each sentence-ending full stop, question mark or exclamation mark. If your text uses those marks for abbreviations or ellipses, an extra capital can appear. You can adjust the result by hand afterwards.
There is no fixed limit and everything runs in your browser, so very large pastes are handled on your own device without uploading anything. Extremely long text may briefly slow the live update, but normal documents convert instantly.
Related tools
Count words, characters, sentences, paragraphs and lines live, with reading time, speaking time and keyword frequency.
Online NotepadA private browser notepad that autosaves as you type, restores your last session and exports to TXT or Markdown.
Data Encoding ConverterConvert text between Base64, hexadecimal, binary, URL encoding and Unicode escapes.