CONSTANT_CASE Converter
Turn phrases into capital letters joined by underscores, such as MAX_LOGIN_ATTEMPTS. Each line is converted separately.
Characters: 0Words: 0Lines: 0
Case types with examples
Starting text: The Lord of the Rings
CONSTANT_CASE
Words are capitals joined with underscores.
THE_LORD_OF_THE_RINGS
snake_case
Words are lowercase and joined with underscores.
the_lord_of_the_rings
camelCase
Words are joined with no spaces; every word after the first starts with a capital.
theLordOfTheRings
PascalCase
Words are joined with no spaces and every word starts with a capital.
TheLordOfTheRings
kebab-case
Words are lowercase and joined with hyphens.
the-lord-of-the-rings
Where CONSTANT_CASE is used
CONSTANT_CASE, also called UPPER_SNAKE_CASE, marks values that should never change, such as MAX_RETRIES or API_BASE_URL. It is also the standard style for environment variable names.
How to use the CONSTANT_CASE tool
- Paste one name or phrase per line into the box.
- Click CONSTANT_CASE (or another naming style).
- Click the copy icon above the text and use the result.
Frequently asked questions
What is CONSTANT_CASE?
CONSTANT_CASE, also called UPPER_SNAKE_CASE or SCREAMING_SNAKE_CASE, uses capital letters with underscores between words.
When should I use it?
It is the usual style for constants and environment variables in many languages, for example API_BASE_URL.