Case Converter

The Case Converter transforms text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, and kebab-case. For programmers, writers, and content creators.

Free online tool · Text Tools · No installation · No sign-up required

Overview

A case converter is an essential utility for developers, writers, and data analysts, designed to programmatically alter the capitalization of text. This tool automates the transformation of text into various case styles, such as uppercase, lowercase, title case, sentence case, and more specialized formats like camelCase or snake_case. At a technical level, the tool parses the input string and applies a set of rules based on the selected case. For instance, converting to uppercase involves iterating through each character and replacing it with its corresponding uppercase equivalent using character encoding standards like ASCII or Unicode. More complex transformations, such as title case, require identifying word boundaries (spaces, hyphens) and capitalizing the first letter of each word, while ensuring that articles, prepositions, and conjunctions are not capitalized unless they are the first or last word. This functionality is crucial for maintaining consistent formatting in codebases, databases, and documents, which enhances readability and prevents errors that can arise from case sensitivity in programming languages and file systems.

The significance of a case converter extends beyond mere aesthetics; it plays a vital role in data processing and software development. In many programming languages, variable names and function identifiers are case-sensitive, meaning `myVariable` and `myvariable` would be treated as two distinct entities. A case converter helps enforce a consistent naming convention (e.g., camelCase for variables, PascalCase for classes) across a project, which is a cornerstone of writing clean, maintainable code. For data analysts, case converters are indispensable for data cleaning and normalization. When working with large datasets from multiple sources, inconsistencies in capitalization are common (e.g., \'new york\', \'New York\', \'NEW YORK\'). A case converter can quickly standardize these entries to a single format, ensuring accurate data aggregation and analysis. This process, known as case normalization, is a fundamental step in preparing data for machine learning models, statistical analysis, or database ingestion, preventing duplicate or fragmented records.

Modern case converter tools offer a wide array of advanced features that cater to specific professional needs. Beyond basic case changes, many tools now support \'slugify\' functionality, which converts text into a URL-friendly format by making it lowercase, removing special characters, and replacing spaces with hyphens. This is invaluable for SEO specialists and web developers creating clean and readable URLs. Some converters also provide options for alternating case (aLtErNaTiNg), inverse case (iNVERSE), and even more esoteric formats required in specific domains. The ability to handle multi-line text blocks and process large files makes these tools highly efficient for tasks that would be tedious and error-prone if done manually. By providing a simple interface to perform complex text manipulations, case converters empower users to enforce consistency, improve readability, and streamline their workflows, making it an indispensable tool in any digital toolkit.

Worked example

One heading turned into a title and a URL slug

An editor has the heading how to set up a proxy server in Ubuntu and needs a Title Case version for the page plus a kebab-case slug for the URL, without touching the rest of the article.

  1. Paste the heading and press Title Case. Every word is lowercased first, then the first letter of every token is uppercased.
  2. The small-word list keeps articles, conjunctions and short prepositions lowercase inside the title, so to, up and in stay lowercase.
  3. The first and the last word are always capitalised even when they are small words, so a heading that begins with the becomes The.
  4. Result: How to Set up a Proxy Server in Ubuntu.
  5. Press kebab-case for the slug. The conversion normalises to NFD and removes combining marks, replaces each run of non-alphanumeric characters with a hyphen and lowercases everything, giving how-to-set-up-a-proxy-server-in-ubuntu.
  6. Ubuntu survives as a word but loses its capital, because camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case and path/case all lowercase the tokens before rebuilding them. The same run on HTMLParser and XMLHttpRequest gives htmlparser-and-xmlhttprequest.

Result: The heading becomes How to Set up a Proxy Server in Ubuntu and the slug becomes how-to-set-up-a-proxy-server-in-ubuntu. The slug conversion is lossy by design: accents are stripped and inner capitals are flattened, so it is the right output for a URL and the wrong output for display text.

How to use Case Converter

  1. Paste text
  2. Click desired case
  3. View result
  4. Copy to clipboard

Common mistakes

Running Title Case over a heading that contains acronyms or product names.

The whole string is lowercased first, so HTMLParser becomes Htmlparser and iPhone becomes Iphone. Convert only the words you want changed and restore the capitals by hand, or the page title will look wrong.

Expecting camelCase to split an existing identifier into words.

The split happens on spaces, hyphens, underscores and punctuation, not on capital letters, so theWordCount is one token and becomes thewordcount. Write the words separately before converting.

Using the identifier conversions on text where the accents are part of the spelling.

camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case and path/case strip diacritics, so Cafe com Leite in Portuguese loses its accent in the slug. Title Case and Sentence case keep the accents because they never run the NFD pass.

Assuming Sentence case understands abbreviations.

Any period starts a new sentence, so e.g. this is a test becomes E.G. This is a test. Fix the two or three abbreviations in the text by hand after the conversion.

Features

Limits worth knowing

When to use it

Practical tips

Why use this tool

When this is not the right tool

Frequently asked questions

camelCase?

Words joined, first lowercase, rest capitalized: myVariableName.

snake_case?

Words with underscores, all lowercase: my_variable_name.

kebab-case?

Words with hyphens: my-css-class.

Title Case?

First letter of each word capitalized.

Related tools in Text Tools

Further reading

Case Converter: Transform Text to Any Case Style

Convert text between uppercase, lowercase, title case, sentence case, and more. Perfect for formatting text quickly.