← Converters

Text Case Converter — Transform Any Text Instantly

Transform text between 15+ case formats — instantly, privately, in your browser.

Input
Output
Converted text will appear here…
0Characters
0Words
0Sentences
0Lines
Drop a file here or browse
.txt, .csv, .json, .md, .html, .xml, .log, .js, .ts, .py, .css, .sql, .yaml, .yml, .ini, .cfg, .env — up to 5 MB

What Is the Text Case Converter?

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.

How to Use This Tool

  1. Choose a conversion type by clicking one of the case format buttons at the top (UPPERCASE, camelCase, snake_case, etc.). The active format is highlighted.
  2. Type or paste text into the Input panel on the left. The converted output appears instantly in the Output panel on the right.
  3. Alternatively, upload a file using the drop zone below the editor. Supported formats include .txt, .csv, .json, .md, .html, .xml, .py, .js, .css, .sql, and many more — up to 5 MB.
  4. Copy or download using the buttons below the editor. The Download button saves the converted text as a file to your device.
  5. Check the stats bar between the editor and file upload section for live character, word, sentence, and line counts.

Your Files Stay Private

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.

Common Questions

When should I use camelCase versus snake_case?

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."

What's the difference between Title Case and Capitalize Words?

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.

Can I convert variable names from one programming convention to another?

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.

What's the difference between camelCase and PascalCase?

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.

How does the tool handle acronyms in text?

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.

Can I use this for blog title formatting?

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.

What's CONSTANT_CASE used for?

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.

Who Uses This Tool

  • Programmers — converting variable names between camelCase, snake_case, and PascalCase when switching between programming languages that follow different naming conventions, or when refactoring code to match a new team's style guide.
  • Content writers — formatting blog post titles in proper Title Case consistently, converting headings to the right capitalization style for SEO best practices, and cleaning up text that was pasted in from sources with inconsistent or all-caps formatting.
  • Data entry workers — standardizing name fields that were stored in ALL UPPERCASE database records into proper Title Case for customer-facing letters and documents, and bulk-cleaning messy text data before importing it into a new system.

Learn More

Related guides and text tools you might find useful: