Text Case Converter — Transform Any Text Instantly
Transform text between 15+ case formats — instantly, privately, in your browser.
Transform text between 15+ case formats — instantly, privately, in your browser.
This tool transforms text between 15 different case formats with a single click. The familiar ones are straightforward — UPPERCASE, lowercase, Title Case, Sentence case. But it also handles the programming-specific formats that developers reach for constantly: camelCase for JavaScript variables, snake_case for Python and databases, kebab-case for CSS classes and URLs, PascalCase for class names, CONSTANT_CASE for configuration values, and dot.case for object notation.
There are some less conventional options too. Alternating case (aLtErNaTiNg) flips between upper and lower on each character. Inverse case swaps whatever case each letter currently has. Path/case uses forward slashes as separators. Train-Case capitalizes each word and joins them with hyphens. Every format has its place — some practical, some playful.
What makes this particularly handy is the file upload feature. Got a whole document that needs reformatting? Drop a .txt, .csv, .json, .md, or even a .py file, pick your target case, and download the converted result. No manual find-and-replace across hundreds of lines.
The Text Case Converter processes everything in your browser. When you paste text, it's transformed by JavaScript running on your device — nothing is sent to a server. When you upload a file, it's read locally with the FileReader API, converted in memory, and the result is generated as a download without ever touching a network.
This is by design. Whether you're reformatting code from a client project, converting variable names from a proprietary codebase, or just fixing the case on a personal document, your content remains entirely on your machine.
It depends almost entirely on the language and its conventions. JavaScript and Java favor camelCase for variables and functions (getUserName). Python and Ruby prefer snake_case (get_user_name). CSS classes use kebab-case (user-name-input). Constants in most languages use CONSTANT_CASE (MAX_RETRY_COUNT). The important thing is consistency within a project, not which convention is "best."
Title Case follows English title capitalization rules — it capitalizes most words but keeps short prepositions, articles, and conjunctions lowercase ("The Quick Brown Fox Jumps over the Lazy Dog"). Capitalize Words simply capitalizes the first letter of every single word regardless of its role ("The Quick Brown Fox Jumps Over The Lazy Dog"). Title Case looks more natural for headings and titles.
Yes, that's one of the most popular uses. If you're porting code from Python to JavaScript, you can paste your snake_case variable names and convert them to camelCase. The tool intelligently handles the word boundaries — underscores, hyphens, capital letters, and spaces are all recognized as separators, so the conversion works regardless of the input format.
camelCase starts with a lowercase letter and capitalizes each subsequent word (userName, getTotal, isActive). PascalCase capitalizes every word including the first (UserName, GetTotal, IsActive). In most programming languages, camelCase is the convention for variables and function names, while PascalCase is used for class names and type definitions. The convention varies by language — JavaScript and Java favor camelCase, C# uses PascalCase extensively, and Python prefers snake_case for almost everything.
Acronym handling is one of the trickier parts of case conversion. Take a string like "parseHTTPResponse" — a naive converter might break it into "Parse H T T P Response" for title case. The tokenizer here recognizes common acronym patterns and keeps consecutive uppercase letters grouped together, producing "Parse HTTP Response" instead. It handles most standard patterns well, though extremely unusual combinations might occasionally need a manual tweak.
Title Case is the standard format for article headlines, blog titles, page headings, and meta tags. The tool follows standard title case conventions — major words are capitalized, while articles (a, an, the), conjunctions (and, but, or), and short prepositions (in, on, at, to) stay lowercase unless they're the first or last word of the title. This saves time compared to manually deciding which words to capitalize.
CONSTANT_CASE, sometimes called SCREAMING_SNAKE_CASE, is the convention for values that never change during program execution — configuration keys, environment variables, mathematical constants, and fixed settings. When a developer sees MAX_RETRY_COUNT or API_BASE_URL in code, the all-uppercase format with underscores immediately communicates "this value is fixed and should not be modified." It's a universal convention across nearly all programming languages.
Related guides and text tools you might find useful: