Case Converter Online– Count Characters and Words Instantly

πŸ”€ Case Converter

Convert text to uppercase, lowercase, title case, and more

Enter Your Text 0 characters

πŸ“‹ Examples:

Original: hello world
Sentence case: Hello world
Title Case: Hello World
camelCase: helloWorld
snake_case: hello_world
UPPERCASE: HELLO WORLD

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.

Sentence Case

First Word Capitalised

Hello world! This is an example.

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.

lowercase

All Letters Small

hello world! this is an example.

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.

UPPERCASE

All Letters Capital

HELLO WORLD! THIS IS AN EXAMPLE.

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.

Title Case

Each Word Capitalised

Hello World! This Is an Example.

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.

camelCase

First Word Lowercase, Rest Capitalised

helloWorldThisIsAnExample

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.

PascalCase

Every Word Capitalised, No Spaces

HelloWorldThisIsAnExample

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.

snake_case

Words Joined with Underscores

hello_world_this_is_an_example

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.

kebab-case

Words Joined with Hyphens

hello-world-this-is-an-example

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 CaSe

Alternating Upper and Lower

hElLo WoRlD tHiS iS aN eXaMpLe

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.

iNvErSe CaSe

Swaps Existing Upper and Lower

HELLO WORLD! this is AN EXAMPLE.

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.

1

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.

2

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.

3

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.

What is the difference between title case and sentence case? +
Sentence case capitalises only the first letter of the first word in a sentence and any proper nouns β€” just as you would write a normal sentence. Example: "The best free online tools for writers." Title case capitalises the first letter of most words β€” Example: "The Best Free Online Tools for Writers." Title case is used for article headlines, book titles, and SEO page titles. Sentence case is used for body text, captions, and general writing. Minor words like "the", "for", and "and" are typically not capitalised in title case unless they appear at the start.
What is camelCase and when should I use it? +
camelCase removes spaces between words and capitalises the first letter of each word except the first β€” so "hello world example" becomes "helloWorldExample". It is the standard naming convention for variables and functions in JavaScript, TypeScript, Java, Swift, and Kotlin. It is also commonly used for JSON property names and API response fields. If you are writing JavaScript or working with APIs, camelCase is likely the format your codebase expects for variable names.
What is the difference between camelCase and PascalCase? +
The only difference is whether the very first letter is lowercase or uppercase. camelCase starts with a lowercase letter: helloWorldExample. PascalCase (also called UpperCamelCase) starts with an uppercase letter: HelloWorldExample. In practice, camelCase is used for variables, functions, and method names, while PascalCase is used for class names, constructor functions, React component names, and TypeScript interfaces. Both remove spaces and capitalise the start of each subsequent word.
When should I use snake_case versus kebab-case? +
snake_case uses underscores to join words and is the standard for Python variables and functions, Ruby variables and methods, database column names in SQL, and file names in many backend systems. kebab-case uses hyphens and is the standard for URLs, URL slugs, CSS class names, HTML data attributes, and file names in web projects. A quick rule of thumb: if it appears in a URL, CSS, or HTML, use kebab-case. If it appears in Python code or a database schema, use snake_case.
Does the converter work with special characters and punctuation? +
Yes. For writing-focused formats like sentence case, title case, uppercase, and lowercase, punctuation and special characters are preserved exactly as they appear in your original text β€” only the alphabetic letters are modified. For developer-focused formats like camelCase, PascalCase, snake_case, and kebab-case, spaces are removed or replaced with the appropriate separator, and punctuation is typically stripped since these formats are designed for identifiers that cannot contain punctuation.
Can I convert multiple paragraphs at once? +
Yes. The case converter handles text of any length β€” a single word, a sentence, a paragraph, or an entire multi-paragraph article. Paste your full content into the input box and the selected conversion applies to all text simultaneously. For sentence case in particular, the converter correctly identifies sentence boundaries across multiple paragraphs and capitalises the first letter of each new sentence.
Is my text saved or sent anywhere? +
No. All case conversion happens entirely within your browser using JavaScript. Your text is never transmitted to RankStreak's servers and is never stored in any database or log. When you close the tab or click Clear, your content is gone completely. You can safely paste sensitive drafts, client content, confidential documents, or unpublished work without any privacy concern.
What is inverse case and when would I use it? +
Inverse case flips the capitalisation of every individual letter β€” each uppercase letter becomes lowercase and each lowercase letter becomes uppercase. The most practical use case is fixing text accidentally typed with Caps Lock on: if "hello world" was entered as "HELLO WORLD", applying inverse case converts it back to "hello world" instantly. It is also used in creative design and typography for stylistic purposes, and occasionally in social media posts for visual effect.
Which case format should I use for blog post titles? +
Title case is the most widely used format for blog post headlines in English β€” it looks professional, matches the style of major publications, and performs well in search results. Sentence case is an acceptable alternative, particularly for blogs that prefer a more conversational or journalistic tone, and is the preferred style of some major outlets like The Guardian. The most important thing is consistency β€” choose one style and apply it uniformly across all posts on your site rather than mixing the two.
Does this tool work on mobile? +
Yes. The case converter is fully responsive and works on smartphones and tablets as well as desktop browsers. All ten conversion buttons are accessible on mobile, the text input works with your phone's keyboard and paste function, and the Copy Result button copies to your mobile clipboard correctly. No app installation is required β€” just open the page in your mobile browser and use it directly.