Case Converter
Back to Text Tools ListFAQ
What is a Case Converter? How to use it?
A case converter allows you to transform text into different formats. It supports 9 formats: Upper Case (UPPER CASE), Lower Case (lower case), Capitalized Case, Kebab Case (kebab-case), Snake Case (snake_case), Camel Case (camelCase), Pascal Case (PascalCase), Toggle Case (tOGGLE cASE), and Alternating Case (AlTeRnAtInG cAsE). Simply enter your text, click the desired format button, and the text will be converted instantly. You can also copy the result with one click.
What is the difference between Camel Case and Pascal Case? When should you use them?
Camel Case (camelCase) starts with a lowercase first word, and each following word begins with an uppercase letter, such as firstName and userName. It is commonly used for variable names in JavaScript. Pascal Case (PascalCase) capitalizes the first letter of every word, such as UserProfile and ProductItem, and is typically used for class names in object-oriented programming. Both formats remove spaces and use letter casing to separate words. The main difference is whether the first word is capitalized. The choice depends on the naming conventions of the programming language—Camel Case is widely used for variables in JavaScript, while Pascal Case is preferred for class names.
What is the difference between Kebab Case and Snake Case? Where are they used?
Kebab Case uses hyphens (-) to connect words, e.g., user-profile, product-item, and is commonly used for CSS class names, HTML attributes, URL paths, and npm package names, especially in front-end development. Snake Case uses underscores (_) to connect words, e.g., user_profile, product_item, and is widely used for Python variable names, database column names, and file naming. Both formats convert text to lowercase and separate words with a delimiter. The main difference is the choice of separator. Selection depends on project conventions and language norms: Kebab Case is common in front-end development, while Snake Case is preferred in Python and database-related work.
What languages does this tool support? Can it handle special characters?
This tool supports all Unicode characters, including Chinese, Japanese, Korean, Vietnamese, Arabic, Russian, and more. The case conversion functions use Unicode property escapes (\\p) to identify letters, ensuring that letters from all languages can be correctly converted. For non-letter characters such as numbers, punctuation marks, and spaces, they are appropriately processed according to different formats. For example, Kebab Case converts spaces to hyphens, Snake Case converts spaces to underscores, while Camel Case and Pascal Case remove separators and preserve non-letter characters. Regardless of the input language or special characters included, the tool can correctly process and produce the expected conversion results.
What's the difference between Toggle Case and Alternating Case?
Toggle Case reverses the case of each letter, converting uppercase to lowercase and lowercase to uppercase. For example, \"Hello World\" becomes \"hELLO wORLD\", with all letters reversed. Alternating Case determines the pattern based on the first letter's case. If the first letter is uppercase, it becomes lowercase after reversal, then alternates case, for example \"Hello World\" becomes \"hElLo WoRlD\". If the first letter is lowercase, it becomes uppercase after reversal, then alternates case, for example \"hello world\" becomes \"HeLlO WoRlD\". The main difference is that Toggle Case is a pure reversal, while Alternating Case starts an alternating pattern from the first letter after reversal, producing different visual effects.
