- 16 case formats — UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, SCREAMING_CASE, dot.case, path/case, Reverse Text, Capitalize Words, aLtErNaTiNg (alternating case), iNVERTED and Reverse Words. (For Unicode small caps, use our Fancy Text Generator.)
- camelCase for JavaScript, snake_case for Python. Every programming language has specific naming conventions — violating them breaks linters and confuses collaborators.
- kebab-case for URLs. Google treats hyphens as word separators; underscores blur words. Always use lowercase URLs to avoid broken links.
- Title Case rules vary by style guide. AP, APA, Chicago, and MLA all have different capitalization rules for headings and titles.
- Fix caps lock in seconds. Paste ALL CAPS text, click Sentence case, done — no manual retyping needed.
- Convert between formats instantly. camelCase to snake_case for Python, snake_case to camelCase for JavaScript API responses.
What is a case converter
A tool that changes the capitalization pattern of your text — and why it saves hours of manual retyping.
Every piece of text has a case pattern. The sentences you read in a novel use sentence case. The titles of articles use Title Case. The variable names in your JavaScript code use camelCase. The file names on a Linux server use snake_case or kebab-case. A case converter lets you switch between all of these formats with a single click.
The core idea is simple: you paste your text, pick the case you want, and the tool transforms every character accordingly. No manual retyping, no missed letters, no inconsistency. The AFFLIGO case converter supports 16 different letter case formats, handles any text length, runs entirely in your browser (your text never leaves your device), and shows real-time character, word, and line counts as you type.
16 case formats
UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, SCREAMING_CASE, dot.case, path/case, Reverse Text, Capitalize Words, aLtErNaTiNg, iNVERTED and Reverse Words.
Live counts included
Character, word, and line counts update alongside the output — handy when renaming variables across a file.
Instant results
Real-time conversion as you type. No "Convert" button needed — the output updates immediately with a tiny 80ms debounce.
All 16 case types
Every case format the tool supports, with examples and when to use each one.
| Case Type | Example | Primary Use |
|---|---|---|
| UPPERCASE | HELLO WORLD | Emphasis, acronyms, warnings |
| lowercase | hello world | URLs, emails, casual text |
| Title Case | Hello World | Headings, book titles |
| Sentence case | Hello world. | Body text, paragraphs |
| Capitalize Words | Hello World | Button labels, menus |
| aLtErNaTiNg | HeLlO WoRlD | Decorative, meme text |
| iNVERTED | hELLO wORLD | Decorative, meme text |
| camelCase | helloWorld | JS/Java variables, methods |
| PascalCase | HelloWorld | Classes, React components |
| snake_case | hello_world | Python, SQL, DB columns |
| kebab-case | hello-world | URLs, CSS, file names |
| SCREAMING_CASE | HELLO_WORLD | Constants, env vars |
| dot.case | hello.world | Config paths, package names |
| path/case | hello/world | File paths, URLs |
| Reverse Text | dlrow olleh | Mirrors, puzzles |
| Reverse Words | world hello | Word order reversal |
UPPERCASE & lowercase
Every letter converted to capitals or smalls. UPPERCASE for emphasis ("DO NOT ENTER") and acronyms (NASA, FBI). lowercase for URLs, email addresses, and casual text.
Title Case & Sentence case
Title Case capitalizes major words — used for headings and book titles. Sentence case capitalizes only the first letter of each sentence — the web standard for body text.
camelCase & PascalCase
camelCase (first word lowercase) for JavaScript/Java variables. PascalCase (all words capitalized) for class names and React components. Both use no separators.
snake_case & kebab-case
snake_case (underscores) for Python, Ruby, and database columns. kebab-case (hyphens) for URLs, CSS classes, and file names. Google treats hyphens as word separators.
SCREAMING_CASE
SCREAMING_CASE (uppercase + underscores) for constants and environment variables. Use this for API keys, configuration flags, and compile-time constants.
Capitalize Words & decorative cases
Capitalize Words (first letter of each word capitalized) for button labels and menus. aLtErNaTiNg and iNVERTED cases for decorative and meme text only — no practical use in formal writing.
When to use each case
Choosing the right case matters. Here is a practical decision guide for every situation.
| Context | Use This Case | Example |
|---|---|---|
| Book titles, article headlines | Title Case | The Art of Learning |
| Body text, paragraphs | Sentence case | The quick brown fox jumps. |
| Warning signs, emphasis | UPPERCASE | CAUTION: WET FLOOR |
| Casual messages | lowercase | hey, are you coming tonight? |
| URL slugs | kebab-case | /blog/case-converter-guide |
| CSS class names | kebab-case | .nav-link |
| JavaScript variables | camelCase | userName |
| React components | PascalCase | UserProfile |
| Python variables | snake_case | user_name |
| Environment variables | SCREAMING_CASE | API_KEY |
| Constants | SCREAMING_CASE | API_KEY |
| Button labels, menus | Capitalize Words | Add To Cart |
| Database columns | snake_case | created_at |
Ask yourself: "Where will this text appear?" Headings get Title Case. Body text gets Sentence case. Code variables follow the language convention. URLs use kebab-case. Constants use SCREAMING_CASE. If you can answer that, the right choice is obvious.
How to convert: step-by-step
The most common conversions, explained with steps and use cases.
Fix text typed in all caps
Paste your ALL CAPS text into the converter. Click Sentence case for paragraphs (capitalizes first letter of each sentence, lowercases the rest). Click Title Case for headings. This fixes accidental caps lock in seconds instead of retyping everything.
Convert camelCase to snake_case
Paste your camelCase text (e.g., getUserProfile). Click snake_case. The tool splits at capital letters and joins with underscores: get_user_profile. Essential when porting JavaScript code to Python or generating SQL from ORM models.
Convert snake_case to camelCase
Paste your snake_case text (e.g., user_name). Click camelCase. The tool removes underscores and capitalizes each word after the first: userName. Common when consuming a Python API response in a JavaScript frontend.
Generate a URL slug
Paste your blog title or heading (e.g., "How to Convert Text Case Online"). Click kebab-case. The result: how-to-convert-text-case-online. Remove special characters manually if needed. This is the standard format for SEO-friendly URLs.
Rename variables between languages
Paste your variable name in the source language format. Click the target language's convention. For example, Python's fetch_order_by_id to JavaScript's fetchOrderById, or a CSS class nav-link to a React prop navLink.
Bulk convert and download
Paste large blocks of text or multiple lines. The converter handles any length. Click Download .txt to save the result as a file. Useful for renaming dozens of database columns, converting CSV headers, or reformatting documentation.
Programming naming conventions
Different languages have strict case conventions. Here is a complete reference for developers.
| Language | Variables | Functions | Classes | Constants |
|---|---|---|---|---|
| JavaScript | camelCase | camelCase | PascalCase | SCREAMING_CASE |
| TypeScript | camelCase | camelCase | PascalCase | SCREAMING_CASE |
| Python | snake_case | snake_case | PascalCase | SCREAMING_CASE |
| Java | camelCase | camelCase | PascalCase | SCREAMING_CASE |
| Ruby | snake_case | snake_case | PascalCase | SCREAMING_CASE |
| C# | camelCase | PascalCase | PascalCase | PascalCase |
| Go | camelCase | PascalCase | PascalCase | mixedCase |
| Rust | snake_case | snake_case | PascalCase | SCREAMING_CASE |
| CSS | kebab-case (classes, IDs, properties) | |||
| HTML | kebab-case (attributes, IDs), lowercase (tag names) | |||
| SQL | snake_case (most databases) | |||
// From Python snake_case to JavaScript camelCase:
const userName = getName();
const isActive = checkStatus();
// From JavaScript camelCase to Python snake_case:
user_name = get_name()
is_active = check_status()
// CSS class (kebab-case) to React prop (camelCase):
// .nav-link ? navLink
// .btn-primary ? btnPrimary
camelCase vs snake_case — when to use which
JavaScript & TypeScript: camelCase for variables, functions, JSON keys. PascalCase for classes and components.
Python & Ruby: snake_case for functions and variables (PEP 8 mandates this). PascalCase for classes.
Java & C#: camelCase for methods and variables. PascalCase for classes and interfaces.
SQL: snake_case for column names universally.
Constants in all languages: SCREAMING_CASE.
The acronym problem
When converting between cases, acronyms can behave unexpectedly. XMLHttpRequest in PascalCase becomes xmlHttpRequest (treat acronym as word) or xmlHTTPRequest (preserve acronym caps). Most modern tools and the AFFLIGO converter use the "treat as word" convention — matching lodash and the change-case npm package.
Title case style guides
Different style guides have different rules for capitalizing titles. Here is how each one works.
| Style Guide | Rule | Example |
|---|---|---|
| AP Style | Capitalize words with 4+ letters. Lowercase articles, prepositions, conjunctions with 3 or fewer letters. | How to Use Title Case Correctly |
| APA Style | Capitalize all major words (nouns, verbs, adjectives, adverbs). Lowercase articles, short prepositions, conjunctions with 3 or fewer letters. | How to Use Title Case Correctly |
| Chicago Manual | Capitalize words of 4+ letters plus nouns, verbs, adjectives, adverbs. Lowercase articles, prepositions, conjunctions unless they start the title. | How to Use Title Case Correctly |
| MLA Style | Capitalize all words except articles, short prepositions, and conjunctions. Always capitalize first and last word. | How to Use Title Case Correctly |
Note: this tool's Title Case button capitalizes every word (generic). AP, APA, and Chicago lowercase small words like "to" and "the" — adjust those manually after converting. (UK English spells it capitalise.)
Common title case mistakes
- Capitalizing "to": "How to Convert" is correct, not "How To Convert" (unless AP style).
- Capitalizing "a", "an", "the": "The Art of War" is correct, not "The Art Of War".
- Forgetting words after colons: In APA, capitalize the first word after a colon: "Title Case: How to Get It Right".
- Hyphenated compounds: In APA and Chicago, capitalize both parts of a hyphenated major word: "Self-Report", not "Self-report".
Sentence case vs Title case
Sentence case (capitalize only the first word and proper nouns) is the standard for APA reference list entries, research paper headings (Level 3–5), blog post titles (Wikipedia, Medium style), and error messages.
Title Case is the standard for book titles, movie titles, newspaper headlines (AP style), SEO page titles, and navigation menus.
URL slugs & SEO
Why kebab-case is the universal standard for URLs, and how to generate slugs from text.
Search engines consistently favor clean, readable URLs. kebab-case (lowercase with hyphens) is the most widely recommended format for URL slugs — and there are technical reasons why.
Google treats hyphens as word separators
A URL like /blog/case-converter-guide is parsed by Google as three separate words: "case", "converter", "guide". An underscore URL like /blog/case_converter_guide blurs the words together — Google treats underscores as part of the word, not as separators.
URLs are case-sensitive on some servers
Apache and some other servers treat /Blog/Case-Converter as a different URL from /blog/case-converter. This means uppercase letters in URLs can create duplicate content issues and broken links. Always use lowercase.
How to generate a slug from text
Paste your heading or title into the case converter. Click kebab-case. Remove any special characters (&, %, #, etc.) manually. The result is your URL slug. For example: "What Is camelCase? Complete Guide" becomes what-is-camelcase-complete-guide.
Keep URL slugs short (3–5 words). Remove stop words (a, the, is, in) if they don't add meaning. A slug like /blog/case-converter-guide is better than /blog/what-is-a-case-converter-and-how-to-use-it.
Real-world use cases
Who uses case converters and why. These are the most common scenarios.
Content writers & bloggers
Convert between sentence case and Title Case for headings, subheadings, and meta descriptions. SEO specialists standardize title tags. Email marketers test subject lines in different cases.
Software developers
Rename variables between camelCase, snake_case, PascalCase, and kebab-case when porting code between languages. Convert a Python variable (user_name) to JavaScript (userName) in one click.
Students & academics
Format research papers with correct case per APA/MLA guidelines. Bibliography entries require specific case formats. Convert article titles between Title Case (in-text) and sentence case (reference list).
SEO professionals
Title case for page titles, sentence case for meta descriptions, lowercase for URL slugs, SCREAMING_CASE for structured data values. Different cases for different elements — applied quickly.
Data entry & cleanup
Standardize names, addresses, and labels across datasets. Convert mixed-case columns to proper case. Bulk-rename database columns when migrating between systems.
Marketing & branding
Convert brand names between cases for different contexts — UPPERCASE for logos, Title Case for formal references, lowercase for casual social media. Generate URL slugs from campaign names.
While preparing this guide I ran a 40-line Python constants file through SCREAMING_SNAKE_CASE and a pasted blog draft through Title Case: the variable renames ported cleanly in one click, but Title Case needed a manual pass on minor words like and/or/the per APA rules. The tool capitalizes mechanically — style judgment stays yours.
How the tool works
Paste text, pick one of 16 cases, copy the result — the flow below.
Paste or type your text
Open the case converter and enter your text in the input box. You can type directly or paste from anywhere — emails, documents, code editors, websites. The tool accepts any length of text and automatically expands the input area as you type.
Click a case button
Choose from 16 case buttons: UPPERCASE, lowercase, Title Case, Sentence case, Capitalize Words, aLtErNaTiNg, iNVERTED, camelCase, PascalCase, snake_case, kebab-case, and SCREAMING_CASE. Click any button to switch.
Copy or download
The converted text appears instantly in the output box. Click Copy to copy it to your clipboard, or click Download .txt to save it as a plain text file. Your original text stays in the input box — you can switch between cases without re-entering anything.
The tool updates the output in real time as you type (with a tiny 80ms debounce for performance). You do not need to click a "Convert" button — just start typing and the result appears immediately.
Best practices
Tips for choosing and using the right case format consistently.
Be consistent within a project
Pick one case convention for each context and stick with it. If your JavaScript uses camelCase for variables, do not mix in snake_case. If your URLs use kebab-case, do not suddenly use underscores. Consistency makes code readable and URLs predictable.
Follow language conventions
Every language has established case conventions. Python uses snake_case; JavaScript uses camelCase (also written camel case). Violating these conventions makes your code harder to read and breaks compatibility with linters and formatters.
Use Title Case for headings
Title Case is the standard for headings, titles, and navigation items. It improves readability and gives a professional appearance. Most style guides (Chicago, APA, AP) have specific Title Case rules — when in doubt, capitalize words with 4 or more letters.
Keep URLs lowercase
URLs are case-sensitive on some servers. Always use lowercase or kebab-case for URLs to avoid broken links. A URL like /Blog/Case-Converter is different from /blog/case-converter on case-sensitive servers.
Frequently asked questions
The most common questions about case conversion, answered.
Paste the kebab-case string (e.g. background-color) and click camelCase. Hyphens are removed and each following segment is capitalized: backgroundColor. Handy when moving CSS property names into JavaScript style objects.
Paste or type your text into the case converter, then click the UPPERCASE button. Every letter instantly converts to its uppercase form. You can then copy or download the result.
Title Case capitalizes the first letter of major words (e.g., "The Quick Brown Fox"). Sentence case capitalizes only the first letter of each sentence (e.g., "The quick brown fox"). Title Case is used for headings; Sentence case is used for body text and paragraphs.
camelCase is a naming convention where the first word is lowercase and each subsequent word starts with a capital letter (e.g., "myVariableName"). It is the standard for variables, functions, and methods in JavaScript, Java, C#, Swift, and TypeScript.
snake_case uses underscores to separate words, all in lowercase (e.g., "my_variable_name"). It is the standard naming convention in Python (PEP 8), Ruby, Rust, and for database column names and SQL identifiers.
camelCase starts with a lowercase letter (e.g., "userProfile"); PascalCase starts with an uppercase letter (e.g., "UserProfile"). camelCase is used for variables and functions; PascalCase is used for class names, React components, and type definitions.
Paste your camelCase text into the case converter and click the snake_case button. The tool splits words at capital letters and joins them with underscores. For example, "getUserProfile" becomes "get_user_profile". This is useful when porting code from JavaScript to Python.
Paste the all-caps text into the case converter and click the "Sentence case" button. It will capitalize only the first letter of each sentence and lowercase everything else. For titles, use the "Title Case" button instead.
Use kebab-case (lowercase with hyphens) for URL slugs. Google treats hyphens as word separators, so "/blog/case-converter-guide" is parsed as three words. Underscores blur words together on case-sensitive servers. Always use lowercase URLs to avoid broken links.
Follow your style guide: US blogs and headlines usually use Title Case (Chicago/AP), while academic references, Google documentation and most non-US publications prefer sentence case. Pick one house style and stay consistent — inconsistency looks worse than either choice. (Headline case is just publishing's name for Title Case.)
Copy the cell or paragraph, paste it into the free case converter, and click Sentence case. Then copy the result back into Word or Excel. Word has no built-in sentence-case button for cells, and Excel formulas like LOWER/UPPER cannot do true sentence case — the converter handles the capitalization correctly in one click.
Quick reference card
Bookmark this section. All case formats and their primary uses in one place.
Basic cases
UPPERCASE: ALL LETTERS CAPITAL
lowercase: all letters small
Title Case: First Letter Of Each Word
Sentence case: First letter of sentence
Developer cases
camelCase: myVariableName
PascalCase: MyClassName
snake_case: my_variable_name
kebab-case: my-variable-name
SCREAMING_CASE: MY_CONSTANT
Capitalize Words: My Button Label
When to use
Headings: Title Case
Body text: Sentence case
URLs: kebab-case
JS variables: camelCase
Python variables: snake_case
Constants: SCREAMING_CASE
Button labels: Capitalize Words
Key Takeaways
- Sentence case is the gold standard for body text and readability — capitalize only the first word and proper nouns.
- Title Case for headings. Follow AP, APA, or Chicago rules depending on your context.
- camelCase for JavaScript/Java, snake_case for Python/Ruby, PascalCase for classes in all languages.
- Always use kebab-case for URL slugs — Google treats hyphens as word separators, underscores do not.
- UPPERCASE for acronyms and emphasis, but avoid it for full sentences as it reads like shouting.
