CONSTANT_CASE converter
Write capital letters joined by underscores, the standard for constants and environment variables.
Advertisement
0 characters, 0 words
0 characters, 0 words
Drop your text file to load it
Advertisement
About this tool
CONSTANT_CASE, also called SCREAMING_SNAKE_CASE, writes every word in capitals and joins them with underscores. It signals a value that should not change.
You see it in constants, configuration keys and environment variables across most programming languages.
Example
Before
max retry countAfter
MAX_RETRY_COUNTWhen to use it
- Constants in code
- Environment variable names
- Configuration keys
- Enum values
Advertisement
Questions
What is it used for?
Names that never change while a program runs, such as MAX_SIZE or API_URL, and environment variables such as DATABASE_URL.
How is it different from snake_case?
The letters are all capitals instead of lowercase.
Does it keep numbers?
Yes. Numbers stay in place and symbols are removed.
Other case converters
- UPPERCASE
- lowercase
- Title Case
- Sentence case
- camelCase
- PascalCase
- snake_case
- kebab-case
- tOGGLE cASE
- aLtErNaTiNg