Text Case Converter
Convert text between 12 different case formats instantly
Choose a conversion
Text Case Conversion — When and Why to Change Letter Case
Letter case is one of those small details that makes a big difference. Whether you are writing a headline for a blog post, naming a variable in source code, formatting a database column, or cleaning up messy data pasted from a PDF, the case of your text matters. This free text case converter lets you switch between 12 different formats in a single click — no signup, no server upload, and no character limits. Everything runs locally in your browser, so your text stays private.
Naming Conventions in Programming
Every programming language and framework has preferred naming conventions, and using the wrong one can break your code or violate style guides that your team enforces with linters. Understanding these conventions is essential for any developer:
- camelCase — The standard for JavaScript variables and functions, Java methods, and TypeScript. The first word is lowercase, and each subsequent word begins with a capital letter:
getUserName,totalPrice. - PascalCase — Used for class names in virtually every object-oriented language (Java, C#, Python, TypeScript) and for React component names. Every word starts with a capital letter:
UserProfile,ShoppingCart. - snake_case — The convention in Python (PEP 8), Ruby, Rust, and database column naming. Words are joined by underscores and entirely lowercase:
first_name,created_at. - kebab-case — Common in CSS class names, HTML attributes, URL slugs, and CLI flags. Words are joined by hyphens:
text-case-converter,max-width. - CONSTANT_CASE — Reserved for constants and environment variables in most languages. It combines uppercase letters with underscores:
MAX_RETRIES,API_BASE_URL. - dot.case — Found in Java package names, property file keys, and configuration namespaces:
com.example.app,server.port.
Common Use Cases Beyond Code
Text case conversion is not limited to developers. Writers, marketers, data analysts, and students encounter the need regularly:
- Headline formatting — Title Case capitalizes the first letter of every major word, which is the standard for news headlines, blog titles, and book names following AP or Chicago style.
- Data cleanup — Datasets exported from legacy systems often contain names in ALL CAPS. Converting to Title Case or Sentence case makes the data presentable without manual editing of thousands of rows.
- Email subject lines — Marketing teams A/B test subject lines in different cases. Sentence case feels conversational, while Title Case feels authoritative.
- SEO and URLs — Search engines prefer lowercase, hyphenated URL slugs (kebab-case). Converting a page title to kebab-case gives you a clean, SEO-friendly slug instantly.
- Social media — Alternating case (aLtErNaTiNg CaSe) is the internet's way of conveying sarcasm or humor, popularized by the Spongebob mocking meme.
How This Tool Works
Paste or type your text in the input box, then click any of the 12 conversion buttons. The output updates immediately — there is no "Convert" button to wait for. You can keep clicking different conversions to compare results side by side. The tool preserves line breaks so that multi-line text, code snippets, and lists maintain their structure. For programmatic case formats (camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case), the converter intelligently splits your text on spaces, hyphens, underscores, dots, and existing camelCase boundaries before rejoining with the target separator.
Frequently Asked Questions
What is the difference between Title Case and Sentence case?
Title Case capitalizes the first letter of every word (or every major word, depending on the style guide). Sentence case only capitalizes the first letter of the first word in each sentence, just like normal prose. For example, "the quick brown fox" becomes "The Quick Brown Fox" in Title Case and "The quick brown fox" in Sentence case.
When should I use camelCase versus snake_case?
It depends on the language and its community conventions. JavaScript and Java favor camelCase for variables and methods. Python and Ruby strongly prefer snake_case. The key is consistency — pick the convention that matches your language's style guide and stick with it across the entire project.
Does this tool handle special characters and accented letters?
Yes. The converter preserves punctuation, numbers, and special characters for natural-language conversions (UPPERCASE, lowercase, Title Case, Sentence case, Alternating, Inverse). For programmatic formats, non-alphanumeric characters are treated as word boundaries and stripped from the output, which is the expected behavior when generating variable or class names.
Is there a character limit?
No. Because everything runs in your browser, there is no server-imposed limit. The tool handles thousands of lines without any issues. Performance depends only on your device.
This text case converter is completely free, requires no sign-up, and processes everything locally in your browser. Your text is never sent to a server. Bookmark this page and use it whenever you need to transform text between any case format — whether you are writing code, cleaning data, or formatting content.
Related reading: Regex Cheat Sheet: The Most Useful Regular Expressions