Advertisement
Google AdSense — 728×90 Leaderboard
Choose a case format
Applied
Input 0 words · 0 chars
Result 0 words · 0 chars

What is a case converter and when do you need one?

Text case refers to whether letters are written in uppercase (capital letters), lowercase, or some combination. A case converter is a tool that changes the casing of your text with one click — turning "HELLO WORLD" into "hello world", or "some text here" into "Some Text Here" — without you having to retype anything.

The need comes up more often than you might think. Writers need to fix text that was accidentally typed in caps lock. Developers need to convert human-readable labels into variable names. Content managers need to standardise heading capitalisation across an entire article. Designers need to test how text looks in different case formats. This tool handles all of those scenarios and more, with 12 different case formats available in one place.


All 12 case formats explained

UPPERCASE

Converts every letter to its capital form. "hello world" becomes "HELLO WORLD". Used in headings, labels, acronyms, and situations where you want maximum visual emphasis. Also the fix when you've accidentally left caps lock on and typed an entire paragraph.

lowercase

Converts every letter to its lowercase form. "HELLO WORLD" becomes "hello world". The most commonly needed conversion — fixing text that came in all caps, normalising data for comparison, or preparing text for processing where case differences would cause problems.

Title Case

Capitalises the first letter of every word. "the quick brown fox" becomes "The Quick Brown Fox". Used for book titles, article headings, proper nouns, and anywhere the style guide says to capitalise all significant words.

Sentence case

Capitalises only the first letter of each sentence, leaving everything else lowercase. "hello. this is a test." becomes "Hello. This is a test." This is the standard capitalisation for normal written prose — most content should be in sentence case.

camelCase

Removes spaces and capitalises the first letter of every word except the first. "hello world" becomes "helloWorld". This is the standard naming convention for variables and functions in JavaScript, Java, and many other programming languages. It's called camelCase because the capital letters look like the humps of a camel.

PascalCase

Like camelCase but with the first letter also capitalised. "hello world" becomes "HelloWorld". Used for class names in JavaScript, C#, Java, TypeScript, and most object-oriented languages. Also common for React components and other named exports.

snake_case

Replaces spaces with underscores and converts everything to lowercase. "hello world" becomes "hello_world". The standard naming convention in Python — variables, functions, and module names all use snake_case. Also widely used in database column names and file names.

kebab-case

Replaces spaces with hyphens and converts everything to lowercase. "hello world" becomes "hello-world". This is the standard format for CSS class names, HTML attribute values, URL slugs, and file names in web projects. It's called kebab-case because the words are "skewered" on hyphens like a kebab.

CONSTANT_CASE

Replaces spaces with underscores and converts everything to uppercase. "hello world" becomes "HELLO_WORLD". The universal convention for constants and environment variables — used in Python (CONSTANT_NAME), JavaScript, Java, and most languages to indicate that a value should not be changed.

aLtErNaTiNg case

Alternates between lowercase and uppercase for each letter. "hello world" becomes "hElLo WoRlD". Popular in internet culture for mocking or sarcasm, and used in creative text formatting for social media posts where you want a distinctive visual style.

Toggle case

Inverts the case of each letter — lowercase becomes uppercase and uppercase becomes lowercase. "Hello World" becomes "hELLO wORLD". Useful for quickly reversing a text's casing, or for creative formatting effects.

Inverse case

The complement of Title Case — lowercases the first letter of each word while uppercasing the rest. A creative formatting option most commonly used for visual effect rather than convention.


Programming naming conventions — which case to use where

One of the most practical uses of a case converter is translating between the naming conventions used in different programming languages and contexts. The same concept — say, a user's first name — might be written as firstName in JavaScript, first_name in Python, FirstName in a C# class, FIRST_NAME as a database column constant, and first-name as a CSS class. Our converter handles all of these in one click.

JavaScript and TypeScript

Variables and functions: camelCase. Classes and constructors: PascalCase. Constants: CONSTANT_CASE. CSS-in-JS class names: camelCase or kebab-case depending on the library.

Python

Variables, functions, and module names: snake_case. Classes: PascalCase. Constants: CONSTANT_CASE. This is specified in PEP 8 (Python's style guide) and is one of the most strictly followed conventions in any language community.

CSS and HTML

Class names and IDs: kebab-case is the dominant convention, though BEM (Block Element Modifier) methodology uses a specific variant. Data attributes: kebab-case. URL slugs: kebab-case (Google prefers hyphens over underscores in URLs for SEO reasons).

Databases

Column names: typically snake_case in PostgreSQL and MySQL, though some teams use SCREAMING_SNAKE_CASE for constants. Table names: usually snake_case (plural), sometimes PascalCase depending on the ORM in use.


Frequently asked questions

Why is my text coming out wrong after applying camelCase?

The camelCase conversion splits your text on spaces and special characters, then joins the words with the first letter of each word (except the first) capitalised. If your text has unusual punctuation, numbers, or non-standard spacing, the output may look unexpected. Try cleaning up the input text first — removing extra spaces and special characters — then running the camelCase conversion.

What's the difference between camelCase and PascalCase?

Both formats remove spaces and capitalise the first letter of each word, but camelCase starts with a lowercase letter ("helloWorld") while PascalCase starts with an uppercase letter ("HelloWorld"). The choice between them is almost always determined by the language or framework you're using — JavaScript functions use camelCase, JavaScript classes use PascalCase, Python uses neither (preferring snake_case for both).

Does Title Case capitalise every single word?

Our implementation capitalises the first letter of every word, which is a simple and consistent approach. More sophisticated style guides (AP, Chicago, APA) have rules about which words to leave lowercase — typically short prepositions, conjunctions, and articles unless they're the first or last word. For professional publishing, always check the relevant style guide after using the converter.

Is my text sent to a server?

No. All conversion happens in your browser using JavaScript. Your text never leaves your device. You can safely convert confidential content, internal documents, or any private text.

Why does Google prefer kebab-case for URLs?

Google has stated that it treats hyphens as word separators in URLs, but underscores as word connectors. So "my-page-title" is read as three separate words (better for search), while "my_page_title" might be read as one combined string. This is why kebab-case is the standard for URL slugs in SEO-conscious web development.

Built by the team behind this site

Need a website that actually gets you customers?

PureTextTools is built and maintained by Kickass Online — a web design and SEO agency that builds fast, conversion-focused websites for businesses across the UK, Ireland, and beyond.

🎨

Web Design

Custom WordPress and WooCommerce websites built to convert visitors into customers. Fast, mobile-first, and built with your business goals in mind.

📈

SEO Services

Search engine optimisation that gets your business ranking for the keywords that matter. Transparent reporting, no lock-in contracts.

🛠️

Website Maintenance

Monthly care plans covering updates, backups, security monitoring, and performance checks. Keep your site fast, secure, and always online.

Free tools, built by real developers. When you need a proper website — you know where to find us.

Start a project with Kickass Online