Text Case Converter — 20 Text Transformations Instantly
Our free text case converter transforms any text into 20 different formats instantly. Convert to UPPERCASE or lowercase, format for code with camelCase, PascalCase, snake_case, or kebab-case, create URL slugs, apply Title Case or Sentence case, and more. Paste your text, click a button, copy the result. No signup, no limits.
All Supported Text Cases
| Case name | Example output | Primary use |
|---|---|---|
| UPPERCASE | HELLO WORLD | Emphasis, constants, acronyms |
| lowercase | hello world | General text, normalization |
| Title Case | Hello World | Headings, titles, proper names |
| Sentence case | Hello world. | General writing, sentences |
| camelCase | helloWorld | Variables in JS, Java, Swift |
| PascalCase | HelloWorld | Classes, components, constructors |
| snake_case | hello_world | Python variables, database columns |
| SCREAMING_SNAKE | HELLO_WORLD | Constants in Python, C, C++ |
| kebab-case | hello-world | CSS classes, URLs, HTML attributes |
| COBOL-CASE | HELLO-WORLD | COBOL language, some configs |
| dot.case | hello.world | Config keys, package names |
| path/case | hello/world | File paths, URL paths |
| Alternating Case | hElLo WoRlD | Mocking tone (internet slang) |
| Inverse Case | hELLO wORLD | Style, emphasis |
| Random Case | heLLo WoRLD | Meme text, randomization |
| Reverse Text | dlrow olleh | Puzzles, mirroring |
| Reverse Words | world hello | Reordering content |
| Slug | hello-world | URL slugs, file names |
| Remove Extra Spaces | hello world | Text cleanup |
| Remove Line Breaks | hello world foo | Single-line output |
Naming Conventions in Programming
Different programming languages and contexts have established conventions for how to write identifiers like variable names, function names, and class names. Using the correct convention for your language makes code more readable and consistent.
| Language / context | Variables | Functions | Classes | Constants |
|---|---|---|---|---|
| JavaScript / TypeScript | camelCase | camelCase | PascalCase | SCREAMING_SNAKE |
| Python | snake_case | snake_case | PascalCase | SCREAMING_SNAKE |
| Java | camelCase | camelCase | PascalCase | SCREAMING_SNAKE |
| C# | camelCase | PascalCase | PascalCase | PascalCase |
| Ruby | snake_case | snake_case | PascalCase | SCREAMING_SNAKE |
| PHP | camelCase | camelCase | PascalCase | SCREAMING_SNAKE |
| Go (Golang) | camelCase | PascalCase (exported) | PascalCase | PascalCase |
| Rust | snake_case | snake_case | PascalCase | SCREAMING_SNAKE |
| CSS | kebab-case | — | — | — |
| HTML | kebab-case | — | — | — |
| Database (SQL) | snake_case | — | — | snake_case |
Title Case Rules
Title Case is more nuanced than simply capitalizing every word. Most style guides specify that certain short words should remain lowercase unless they are the first or last word of the title.
| Style guide | Capitalize | Do not capitalize (unless first/last word) |
|---|---|---|
| AP Style | All words 4+ letters | a, an, and, at, but, by, for, in, nor, of, on, or, so, the, to, up, yet |
| Chicago Manual | All words | Articles (a, an, the), coordinating conjunctions, prepositions under 5 letters |
| APA Style | All words 4+ letters | Short conjunctions, articles, prepositions |
| MLA Style | All words | Articles, prepositions, coordinating conjunctions |
| SEO / General | All major words | Common articles and prepositions |
URL Slug Best Practices
A URL slug is the part of a URL that identifies a specific page in a human-readable form. Good slugs are lowercase, use hyphens as separators, contain keywords, and avoid special characters.
- Use hyphens, not underscores— Google treats hyphens as word separators but underscores as character joiners. "text-case-converter" is better than "text_case_converter" for SEO.
- Keep it short — 3–5 words is ideal. Long slugs are harder to share and remember.
- Use keywords — The slug should describe the page content and include the primary keyword.
- Remove stop words where possible— "how-to-convert-text-case" can often become "convert-text-case" without losing meaning.
- Use lowercase only — URLs are case-sensitive on most servers. Lowercase prevents duplicate content issues.
Frequently Asked Questions
How do I convert text to title case online?
Paste your text into the input field and click the "Title Case" button. The converter capitalizes the first letter of each major word while keeping articles and short prepositions lowercase, following standard title case rules.
What is the difference between snake_case and kebab-case?
Both use the same words in lowercase with separators between them. snake_case uses underscores (hello_world) while kebab-case uses hyphens (hello-world). snake_case is used in programming for variable names. kebab-case is used in URLs, CSS class names, and HTML attributes where hyphens are preferred.
How do I convert a sentence to camelCase?
Paste your sentence into the input and click "camelCase". The converter removes spaces and special characters, lowercases the first word, and capitalizes the first letter of each subsequent word. For example, "Hello World Foo Bar" becomes "helloWorldFooBar".
What is alternating case used for?
Alternating case (aLtErNaTiNg CaSe) is an internet slang convention often used to mock something or express sarcastic or dismissive humor — particularly in response to statements the writer considers obvious or condescending. It has no professional or programming use.
How do I create a URL slug from a title?
Click the "Slug" button to automatically convert any text into a URL-safe slug. The converter lowercases all letters, replaces spaces with hyphens, removes special characters and punctuation, and collapses multiple hyphens into one. For example, "Hello World! This is a Test." becomes "hello-world-this-is-a-test".