Case Converter
ContentConvert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case, and more — instantly as you type.
Discussion
Join the discussion
Sign in to share your thoughts and engage with the community.
About this tool
What is the Case Converter?
The Case Converter transforms any text into one of ten common case formats instantly, as you type. Paste a sentence, a variable name, or a whole paragraph — all ten conversions update in real time so you can copy whichever format you need without clicking a single button.
Supported Case Formats
UPPERCASE — All letters capitalized. Used for headings, emphasis, acronyms, and constants in some style guides.
lowercase — All letters in lower case. Common for email addresses, URLs, and casual writing.
Title Case — The first letter of each significant word is capitalized. Minor words (a, an, the, and, but, or, for, etc.) stay lowercase unless they appear at the start or end of the string. Used for headlines, book titles, and article headings.
Sentence case — Only the first word of the string (and words after sentence-ending punctuation) is capitalized. The standard format for paragraph text, captions, and UI labels.
camelCase — Words are joined without spaces; the first word is all lowercase and each subsequent word starts with a capital letter. The standard variable naming convention in JavaScript, Java, and Swift.
PascalCase — Like camelCase but the first word is also capitalized. Used for class names, component names, and type definitions in most languages.
snake_case — Words are joined with underscores, all lowercase. Common in Python variable names, database column names, and file names on Unix systems.
kebab-case — Words are joined with hyphens, all lowercase. The standard format for HTML attributes, CSS class names, and URL slugs.
CONSTANT_CASE — Words are joined with underscores, all uppercase. The conventional format for constants, environment variables, and configuration keys.
dot.case — Words are joined with dots, all lowercase. Used in package names, property keys in some configuration formats, and Java package conventions.
How It Works
The converter intelligently splits your input into words regardless of how the text is currently formatted. It handles space-separated text, camelCase, PascalCase, snake_case, kebab-case, and dot.case as input — so you can paste a variable name like myVariableName or my-variable-name and get accurate results for all ten output formats.
The splitting logic works as follows: uppercase letters following lowercase letters are treated as word boundaries (for camel and pascal input), then any underscores, hyphens, or dots are treated as separators, and finally whitespace is normalized. The result is a clean list of words that each converter then reassembles into its target format.
Filtering
Once you have entered text, a filter input appears above the results. Type any part of a case name — for example snake, camel, or case — to narrow the results to just the formats you need. This is useful when working with a specific naming convention and you do not want to scroll past the others.
Common Use Cases
Renaming variables — paste a human-readable description and instantly get the camelCase or snake_case variable name to use in your code.
Writing CSS class names — convert a descriptive phrase to kebab-case for BEM-style class naming.
Creating URL slugs — paste a page title and copy the kebab-case version as a clean URL slug.
Environment variables — paste a config key description and copy the CONSTANT_CASE version for your .env file.
Documentation and headings — quickly switch between Title Case for headings and Sentence case for body text.
Privacy
All conversion happens locally in your browser. No text is sent to any server or stored anywhere.