Case Converter Onlineβ Count Characters and Words Instantly
π€ Case Converter
Convert text to uppercase, lowercase, title case, and more
π Examples:
Why Use Our Online Case Converter?
Ten text case formats in one free tool β convert between uppercase, lowercase, title case, sentence case, camelCase, PascalCase, snake_case, kebab-case, alternating case, and inverse case instantly.
10 Case Formats
Most case converters offer three or four options. Ours covers all ten formats that writers, developers, and content creators actually need β from everyday sentence case to developer-specific camelCase, snake_case, and kebab-case.
Instant Conversion
Click any case format button and your text converts immediately β no page reload, no waiting. Works on text of any length, from a single word to full articles with multiple paragraphs.
Live Preview
See a preview of your converted text before copying or downloading. Switch between formats freely and compare results side by side to pick the exact style that fits your purpose.
Copy or Download
Copy your converted text to clipboard in one click, or download it as a .TXT file for use in documents, code files, or any other application. Both options are always available after conversion.
Completely Private
All conversion happens locally in your browser. Your text is never sent to any server, never stored, and never logged. Paste confidential content, client copy, or unpublished drafts without concern.
Free, No Sign-Up
No account, no email address, no usage limits. Convert as much text as you need as many times as you need, completely free. Works on desktop, tablet, and mobile browsers without any installation.
All 10 Case Formats Explained
Each case format has a specific purpose. Here is exactly what each one does, what it looks like, and when to use it.
First Word Capitalised
Capitalises only the first letter of the first word in each sentence, leaving all other words in lowercase. This is the standard format for body text in articles, emails, and everyday written communication. Use it to quickly fix text that was accidentally typed in all caps or all lowercase.
All Letters Small
Converts every letter in the text to lowercase. Useful for normalising text before processing it programmatically, formatting CSS class names in older conventions, or fixing text pasted from sources that used inconsistent or all-caps formatting.
All Letters Capital
Converts every letter to uppercase. Commonly used for headings, warning labels, acronyms, brand names, button text in design mockups, and any context where text needs to stand out visually or follow an all-caps style convention.
Each Word Capitalised
Capitalises the first letter of each major word. Used for article headlines, book titles, movie titles, blog post headings, and SEO page titles. Minor words like articles and prepositions are typically left lowercase in proper title case β our converter handles this automatically.
First Word Lowercase, Rest Capitalised
Removes spaces and capitalises the first letter of each word except the first. The standard naming convention for variables and functions in JavaScript, Java, Swift, and many other programming languages. Also used for JSON property names and API field names.
Every Word Capitalised, No Spaces
Also called UpperCamelCase. Removes spaces and capitalises the first letter of every word, including the first. Used for class names, constructor functions, and component names in JavaScript, C#, TypeScript, and React. Also common in file naming conventions for components.
Words Joined with Underscores
Replaces spaces with underscores and converts all letters to lowercase. The standard naming convention for variables and functions in Python, Ruby, and PHP. Also used for database column names, file names in Linux/Unix systems, and URL slugs in some frameworks.
Words Joined with Hyphens
Replaces spaces with hyphens and converts all letters to lowercase. The standard format for URLs and URL slugs, HTML class names, CSS custom properties, and file names. Named after the resemblance to ingredients on a kebab skewer. Widely used in web development and content management systems.
Alternating Upper and Lower
Alternates between lowercase and uppercase letters throughout the text. Primarily used for humorous or sarcastic emphasis in social media posts β the format became widely associated with the "mocking SpongeBob" internet meme. Also used in creative typography and design where irregular capitalisation is a deliberate stylistic choice.
Swaps Existing Upper and Lower
Flips the case of every individual letter β uppercase becomes lowercase and lowercase becomes uppercase. Unlike alternating case which applies a pattern, inverse case responds to what is already in the text. Useful for quickly reversing incorrectly cased text, particularly if you typed a long passage with Caps Lock accidentally enabled.
How to Use the Case Converter
Three steps and your text is converted. No configuration needed β just paste, click, and copy.
Paste or Type Your Text
Click inside the text input area and paste your content using Ctrl+V (Windows) or Cmd+V (Mac), or simply type directly into the box. The tool accepts text of any length β a single word, a sentence, a full paragraph, or an entire article. The character counter at the bottom of the input box updates in real time as you type or paste.
Select Your Case Format
Click any of the ten case format buttons β Sentence Case, lowercase, UPPERCASE, Title Case, camelCase, PascalCase, snake_case, kebab-case, Alternating Case, or Inverse Case. Your text converts instantly and appears in the preview panel below. You can click multiple format buttons in sequence to compare how your text looks in different cases without losing your original input.
Copy, Download, or Clear
Once you are happy with the result, click Copy Result to copy the converted text to your clipboard instantly β ready to paste into a document, email, code editor, or any other application. Alternatively, click Download as TXT to save the output as a plain text file. Use Clear to wipe the input and start fresh with new content. All three actions work in a single click.
Who Uses a Case Converter?
Text case matters more than most people realise β in code, in SEO, in design, and in everyday writing. Here is how different users rely on this tool daily.
π©βπ» Software Developers
Developers use camelCase, PascalCase, snake_case, and kebab-case constantly. When pasting variable names, function names, class names, or database column names from specifications or documentation, a case converter instantly reformats the text to match the naming convention of the language or framework being used.
βοΈ Bloggers & Content Writers
Title case is the standard for blog post headings, article titles, and email subject lines. Writers use the title case converter to ensure their headlines are correctly formatted β particularly after pasting draft titles that were typed in sentence case or all lowercase during the writing process.
π SEO Specialists
Page titles, meta titles, and H1 headings should follow consistent capitalisation rules for both readability and professional presentation. SEO professionals use the title case converter to standardise headings across a website and the lowercase converter to prepare URL slugs before publishing.
π Students & Academic Writers
Academic writing style guides β APA, MLA, Chicago β each have specific capitalisation rules for titles, headings, and references. Students use the title case and sentence case converters to ensure their references and headings follow the required style without manually checking every word.
π¨ Designers & Marketers
UI designers working on mockups need to prototype text in specific case styles β ALL CAPS for button labels, Title Case for navigation items, sentence case for body copy. Converting sample text to the right format quickly saves time during the design iteration process.
π Data Analysts
Data imported from spreadsheets, databases, or external sources often arrives with inconsistent capitalisation β some fields all caps, some mixed, some lowercase. Converting to a consistent case format before processing or importing is a common data cleaning step.
π± Social Media Managers
Different platforms and post types benefit from different case styles. Captions may use sentence case, hashtags use lowercase with no spaces, and some brands use title case for post headings. A quick case converter speeds up the formatting step when managing content across multiple platforms.
π§ Email & Business Writers
Subject lines, email headings, and formal correspondence follow specific capitalisation conventions. Business writers use the converter to quickly standardise text pasted from various sources before sending professional communications or formatting reports.
Case Format Quick Reference
Use this table to quickly identify the right case format for any situation β writing, coding, design, or SEO.
| Format | Example Output | Common Use Cases | Used In |
|---|---|---|---|
| Sentence case | Hello world example |
Body text, emails, social captions | General writing |
| lowercase | hello world example |
URL slugs, CSS classes, data normalisation | Web dev, data cleaning |
| UPPERCASE | HELLO WORLD EXAMPLE |
Headlines, button text, acronyms, warnings | Design, branding |
| Title Case | Hello World Example |
Article titles, blog headings, book names | Publishing, SEO, academia |
| camelCase | helloWorldExample |
Variables, functions, JSON keys | JavaScript, Java, Swift, TypeScript |
| PascalCase | HelloWorldExample |
Class names, components, constructors | C#, JavaScript, React, TypeScript |
| snake_case | hello_world_example |
Variables, functions, database columns | Python, Ruby, PHP, SQL |
| kebab-case | hello-world-example |
URLs, CSS classes, HTML attributes, file names | HTML, CSS, URLs, CMS platforms |
| aLtErNaTiNg CaSe | hElLo WoRlD eXaMpLe |
Sarcasm, memes, creative typography | Social media, design |
| iNvErSe CaSe | HELLO WORLD EXAMPLE β hello world example |
Fixing Caps Lock errors, creative styling | Text editing, design |
The Complete Guide to Text Case β Why It Matters and How to Use It Correctly
Text case β the way letters are capitalised or lowercased in a piece of writing or code β is one of those details that is easy to overlook and surprisingly consequential when it goes wrong. A headline in the wrong case looks unprofessional. A variable name in the wrong case breaks your code. A URL slug with uppercase letters can cause duplicate content issues. Understanding the rules and conventions behind text case helps you write more professionally, code more consistently, and communicate more clearly.
Why Text Case Matters in Writing and Publishing
In everyday writing, the two case formats that matter most are sentence case and title case, and knowing when to use each is a common source of confusion. Sentence case β where only the first word and proper nouns are capitalised β is the standard for body text, captions, social media posts, email body content, and most conversational writing. It reads naturally and is easiest on the eye for long-form content.
Title case β where the first letter of most words is capitalised β is the convention for article headlines, book titles, film titles, album names, and SEO page titles. However, title case is not simply "capitalise everything." The rules specify that certain words should remain lowercase even in a title: articles (a, an, the), coordinating conjunctions (and, but, or, nor), and short prepositions (in, on, at, by, for, to) are typically lowercase unless they are the first or last word of the title. Our title case converter applies these rules automatically.
Academic writing adds further complexity. The APA style guide, used widely in psychology and social sciences, specifies its own title case rules for headings. The Chicago Manual of Style has slightly different conventions. MLA format differs again. When formatting academic headings and references, checking which style guide your institution requires and applying it consistently is important β the case converter simplifies the mechanical part of this process.
Text Case in Programming β Why Getting It Right Matters
In software development, text case is not a stylistic preference β it is a syntactic requirement. Most programming languages are case-sensitive, meaning that myVariable, MyVariable, and MYVARIABLE are three entirely different identifiers. Using the wrong case for a variable or function name causes runtime errors, failed imports, or subtle bugs that can be difficult to trace.
Each major programming language and framework has established naming conventions that developers are expected to follow. In JavaScript and TypeScript, local variables and function names use camelCase (getUserData), while class names and React components use PascalCase (UserProfile). Constants are typically written in SCREAMING_SNAKE_CASE (MAX_RETRY_COUNT). In Python, the PEP 8 style guide mandates snake_case for variables and functions (get_user_data), PascalCase for class names (UserProfile), and UPPER_CASE for module-level constants.
When building APIs, the naming convention used for JSON fields and URL parameters varies by team and framework. REST API conventions typically use snake_case or camelCase for JSON properties and kebab-case for URL paths and query parameters. GraphQL conventionally uses camelCase for field names. Following your team's established convention consistently matters more than which specific convention is chosen β inconsistency within a codebase is the primary problem our case converter helps resolve.
kebab-case and URLs β An Important SEO Consideration
The format of your URL slugs β the part of the URL that describes the page content β affects both user experience and search engine optimisation. Google's official guidance recommends using hyphens (kebab-case) rather than underscores to separate words in URLs. This is because Google treats hyphens as word separators, so "case-converter" is read as two words. Underscores, however, are treated as word joiners, so "case_converter" is read as a single token β which can hurt keyword matching in search results.
URLs should also be in lowercase. Mixed-case or uppercase URLs create a risk of duplicate content β different capitalisation variations of the same URL technically represent different addresses, which can split link equity and confuse search engines. Using our lowercase converter to prepare URL slugs before publishing, then applying kebab-case formatting for word separation, is the correct workflow for SEO-friendly URL creation.
CSS and HTML β Where Case Conventions Apply
In front-end web development, case conventions apply to HTML attributes, CSS class names, CSS custom properties, and HTML element IDs. The widely accepted convention for CSS class names and IDs is kebab-case: .nav-menu, #main-content, .btn-primary. This convention comes from the BEM (Block Element Modifier) methodology and has been adopted across most CSS frameworks and component libraries.
CSS custom properties (CSS variables) also use kebab-case: --primary-color, --font-size-large. HTML data attributes follow the same pattern: data-user-id, data-item-count. Tailwind CSS utility classes use a kebab-case-based system. Bootstrap uses kebab-case for its classes. Keeping your own class names consistent with these frameworks avoids naming conflicts and keeps your codebase readable.
Database Naming Conventions and snake_case
When designing database schemas β whether for PostgreSQL, MySQL, SQLite, or other relational databases β snake_case is the most widely adopted convention for table names and column names. The reason is practical: SQL is case-insensitive by default, and database engines often normalise identifiers to lowercase internally. snake_case works correctly in all contexts without requiring quoted identifiers.
Column names like user_id, created_at, first_name, and is_active are more readable in snake_case than camelCase in SQL queries, which typically spread across multiple lines. When your backend application language is Python or Ruby β which themselves use snake_case β there is also a consistency advantage: the column names in the database match the variable and attribute names in the application code, reducing the cognitive overhead of mentally translating between formats.
When to Use UPPERCASE β and When Not To
UPPERCASE text carries a specific communicative weight. In written communication, all-caps is widely interpreted as shouting or strong emphasis β using it for body text feels aggressive and is harder to read. The appropriate uses for uppercase are: acronyms and abbreviations (HTML, CSS, API, NASA), button labels in UI design where the all-caps style is an intentional design choice, warning labels and safety notices, and branded terms that are conventionally written in caps.
In code, uppercase is standard for constants β particularly module-level configuration values that should never change during runtime. The MAX_CONNECTIONS = 100 or API_BASE_URL = "https://..." pattern signals to other developers that these values are fixed and should not be modified. This is a convention that adds meaning to the capitalisation choice itself, which is why following it consistently matters.
Common Text Case Mistakes and How to Fix Them
The most common capitalisation mistake in everyday writing is typing a long passage with Caps Lock accidentally enabled β resulting in text that looks like THIS ENTIRE PARAGRAPH. Rather than retyping, using the inverse case converter flips every letter: uppercase becomes lowercase and lowercase becomes uppercase. For text accidentally typed entirely in caps, applying lowercase conversion followed by sentence case gives you properly formatted body text in two clicks.
In coding, the most common case mistake is applying the wrong convention for a language β using camelCase in Python (where snake_case is expected) or using snake_case in JavaScript variable names (where camelCase is expected). When onboarding to a new codebase or switching between languages, having a case converter on hand makes it easy to reformat copied identifiers to match the target language's conventions before pasting.
In SEO and content work, a common mistake is inconsistent heading capitalisation within a single piece of content β some headings in title case, others in sentence case, and others mixed. Consistency matters for both readability and professional presentation. Deciding on one style and applying it uniformly across all headings, then using the converter to check and fix any inconsistencies, produces cleaner, more professional content.
Frequently Asked Questions
Everything you need to know about using the RankStreak Case Converter.