Case Converter
Change text to uppercase, lowercase, title case, sentence case, camelCase, and more. Pick a case, paste your text, and copy the result. Everything runs in your browser.
0 characters
0 characters
About Case Converter
This Case Converter is a utility for developers, writers, and data analysts to programmatically change the letter case of text. It provides instant, client-side conversion to common case styles including UPPERCASE[3], lowercase, Title Case[22], camelCase[4], snake_case[19], kebab-case[10], and PascalCase[16]. These formats are not merely stylistic but are often syntactic requirements or established conventions in programming languages, data serialization formats, and technical documentation.
The concept of letter case[11] is a feature of bicameral scripts, such as Latin, Greek, and Cyrillic, which have distinct majuscule (uppercase) and minuscule (lowercase) letterforms. This duality is a relatively recent invention in writing systems. Early scripts like Roman square capitals were unicameral. The development of lowercase forms evolved over centuries, with Uncial script[23] being an important step and Carolingian minuscule[5], developed during the Carolingian Renaissance, establishing the recognizable ancestor of modern lowercase letters. The pairing of these two forms into a single system became standard with the advent of printing.
In computing, case mapping was initially simple. The ASCII[2] standard encodes uppercase and lowercase English letters at a fixed numerical offset, making conversion a trivial arithmetic operation. However, the globalization of software required a more robust system, leading to Unicode[24]. Unicode defines a complex set of rules for case conversion across thousands of characters and multiple languages, managed by The Unicode Consortium[25]. These rules, stored in the Unicode Character Database[26] (UCD), must account for context and locale[12]. A famous example is the handling of the dotted and dotless I[7] in Turkish. For case-insensitive comparisons, Unicode defines a separate, more stable process called case folding, which provides a canonical, un-cased representation of a string.
Specific case styles have become de facto standards in different programming ecosystems, guided by community style guides[20] that promote readability and consistency. For instance, lower camelCase (dromedaryCase) is the convention for variable names in JavaScript[9] and Java[8]. PascalCase[16] (UpperCamelCase) is typically used for class and type names in C#, Java, and other object-oriented languages. In contrast, snake_case[19] is the standard for variables and functions in Python[17] (as per PEP 8[15]) and Ruby[18]. Kebab-case[10] is syntactically invalid for variables in most languages (due to the hyphen's use as a subtraction operator) but is the dominant convention for CSS properties and URL slugs.
The concept of Title Case[22] is particularly complex as it is not a single, algorithmically defined standard but rather a set of editorial rules. Major style guides like The Chicago Manual of Style[21], the AP Stylebook[1], and the MLA Handbook[13] prescribe different rules for capitalizing short words like articles, conjunctions, and prepositions. A simple programmatic conversion typically capitalizes the first letter of every word. Achieving true, publication-quality title casing requires sophisticated logic, often involving dictionaries of stop words and rules for handling hyphenated compounds, a task that intersects with the field of natural language processing[14].
How to Use
- Paste or type your source text into the input field.
- Select the desired case format from the available options, such as "UPPERCASE" or "camelCase".
- The converted text will appear instantly in the output field.
- Click the "Copy" button to copy the result to your clipboard.
- Use the "Clear" button to reset the input and output fields for a new conversion.
Frequently Asked Questions
What is the difference between camelCase and PascalCase?
Both are compound word capitalization styles. Camel case[4] (also known as dromedaryCase or lowerCamelCase) begins with a lowercase letter and capitalizes the first letter of each subsequent word, like `myVariableName`. PascalCase[16] (or UpperCamelCase) capitalizes the first letter of every word, including the first one, like `MyClassName`. PascalCase is often used for type identifiers like class names, while camelCase is common for variable or function names.
Why do some programming languages prefer snake_case over camelCase?
The choice is largely a matter of convention and readability, codified in a language's style guide[20]. Proponents of snake_case[19], common in Python[17]'s PEP 8[15] and in Ruby[18], argue that the underscores provide clearer word separation than capitalization, especially with long compound names or acronyms. Studies on readability are inconclusive, with developer familiarity often being the most significant factor.
What is "case folding" and how is it different from converting to lowercase?
Converting to lowercase is a mapping of uppercase characters to their lowercase equivalents, which can be dependent on locale[12]. Case folding, as defined by the Unicode Consortium[25], is a more rigorous, locale-independent process for removing case distinctions, designed for stable, case-insensitive string comparisons. For example, the German character 'ß' (Eszett) has no direct uppercase equivalent, but its case-folded version is 'ss'. Using simple lowercasing can fail in such edge cases, while case folding provides a canonical, un-cased representation.
How does this tool handle non-English characters and Unicode?
This tool operates on Unicode[24] strings, not just ASCII[2]. It uses modern browser JavaScript engines which implement the case mapping and folding rules specified in the Unicode Character Database[26] (UCD). This ensures that characters with diacritics (like 'É' to 'é') and characters from non-Latin scripts that have case distinctions (like Greek 'Σ' to 'σ' or Cyrillic 'Б' to 'б') are handled correctly, according to Unicode standards.
Why is my "Title Case" conversion not following the rules I expect?
"Title Case" is ambiguous and lacks a single universal standard. Different style guides, such as the AP Stylebook[1] or The Chicago Manual of Style[21], have different rules for capitalizing articles, prepositions, and conjunctions. This tool applies a common, programmatic rule: capitalize the first letter of every word. For publication-ready title casing, a more advanced tool with natural language processing[14] capabilities would be required.
What is the "Turkish I problem" and does it affect case conversion?
The "Turkish I problem" refers to a locale[12]-specific casing rule where the lowercase of 'I' is 'ı' (dotless i), and the uppercase of 'i' is 'İ' (dotted I). A naive case conversion that assumes a universal 'i'/'I' mapping will produce incorrect results in Turkish. Modern systems handle this by being locale-aware. For programming identifiers, a locale-invariant conversion is typically preferred to ensure consistency. The concept is detailed on Wikipedia under Dotted and dotless I[7].
What is kebab-case and where is it used?
Kebab case[10], also known as spinal-case, uses hyphens to separate words, such as `my-variable-name`. It is not typically used for variable names in most programming languages because the hyphen is interpreted as a subtraction operator. However, it is the standard convention for CSS properties (`font-family`, `background-color`) and is very common in URLs for SEO and readability.
Are there performance differences between case styles like snake_case and camelCase?
In modern compiled or just-in-time (JIT) compiled languages, there is no runtime performance difference. Variable names are converted to memory addresses or tokens by the compiler or interpreter long before execution. Any performance discussion would relate to developer parsing speed (readability) or typing speed, not computational performance. The choice is purely about code style and maintainability.
Sources (26)
- AP Stylebook - Wikipedia
- ASCII - Wikipedia
- All caps - Wikipedia
- Camel case - Wikipedia
- Carolingian minuscule - Wikipedia
- Code point - Wikipedia
- Dotted and dotless I - Wikipedia
- Java (programming language) - Wikipedia
- JavaScript - Wikipedia
- Kebab case - Wikipedia
- Letter case - Wikipedia
- Locale (computer software) - Wikipedia
- MLA Handbook - Wikipedia
- Natural language processing - Wikipedia
- PEP 8 - Wikipedia
- PascalCase - Wikipedia
- Python (programming language) - Wikipedia
- Ruby (programming language) - Wikipedia
- Snake case - Wikipedia
- Style guide - Wikipedia
- The Chicago Manual of Style - Wikipedia
- Title case - Wikipedia
- Uncial script - Wikipedia
- Unicode - Wikipedia
- The Unicode Consortium
- Unicode Character Database (UCD)
About Matt George
I'm Matt George, a software engineer in the startup space. I run my own shop building software for early-stage founders, and I love making free tools and experiences that people actually use. Enjoy using Case Converter!