Case Converter
Convert text between different uppercase and lowercase formats.
Text formats for programmers
In programming, naming conventions are fundamental for writing readable and maintainable code. Each language and community has its preferences: JavaScript and TypeScript favor camelCase for variables and functions, PascalCase for classes and components; Python and Ruby use snake_case for almost everything; URLs and filenames typically use kebab-case; and constants in many languages are written in UPPER_SNAKE_CASE.
This tool instantly converts between all popular formats, saving you time when migrating code between languages, refactoring variable names, or adapting text for different contexts (titles, URLs, databases).
Practical use cases
Language migration: When converting code from Python (snake_case) to JavaScript (camelCase), you need to rename all variables. This tool automates the conversion.
SEO-friendly URLs: Convert article titles ("How to Create a REST API") to URL-friendly format ("how-to-create-a-rest-api") with kebab-case.
Constants and environment variables: Environment variables follow the UPPER_SNAKE_CASE convention (DATABASE_URL, API_KEY). Quickly convert configuration names.
Frequently asked questions
Which convention does each language use?
JavaScript/TypeScript: camelCase (variables), PascalCase (classes). Python: snake_case (everything). Java: camelCase (variables), PascalCase (classes). CSS: kebab-case (properties). SQL: UPPER_SNAKE_CASE (convention). Go: camelCase (private), PascalCase (exported).
What is the difference between camelCase and PascalCase?
In camelCase, the first letter is lowercase: myVariableExample. In PascalCase (also called UpperCamelCase), the first letter is uppercase: MyVariableExample. PascalCase is typically used for classes, components, and types.
How do I handle accents and special characters?
This tool converts accented characters to their unaccented equivalent for formats like camelCase and snake_case. For example, "my function" becomes "myFunction" in camelCase. For Title Case or Sentence format, original accents are preserved.
What is CONSTANT_CASE?
Also called UPPER_SNAKE_CASE or SCREAMING_SNAKE_CASE, it is the convention of writing everything in uppercase with underscores: MY_CONSTANT. It is used for constants, environment variables, and configuration values that don't change.
Conventions by language
| Language | Variables | Classes | Constants |
|---|---|---|---|
| JavaScript | camelCase | PascalCase | UPPER_SNAKE |
| Python | snake_case | PascalCase | UPPER_SNAKE |
| Java | camelCase | PascalCase | UPPER_SNAKE |
| Go | camelCase | PascalCase | camelCase |