SCREAMING_SNAKE_CASE Converter
All uppercase, words separated by underscores. Used for constants.
0 words0 chars
0 words0 chars
What is SCREAMING_SNAKE_CASE?
SCREAMING_SNAKE_CASE (also called MACRO_CASE or CONSTANT_CASE) writes all letters in uppercase with underscores between words. It's the uppercase version of snake_case.
| Input | SCREAMING_SNAKE output |
|---|---|
| max connections | MAX_CONNECTIONS |
| database url | DATABASE_URL |
| default timeout seconds | DEFAULT_TIMEOUT_SECONDS |
| api base url | API_BASE_URL |
Where SCREAMING_SNAKE_CASE is used
- Python constants:
MAX_RETRIES = 3,BASE_URL = "https://..." - Java and C constants:
static final int MAX_SIZE = 100; - Environment variables:
DATABASE_URL,SECRET_KEY - C preprocessor macros:
#define MAX_BUFFER_SIZE 1024 - Configuration keys in many frameworks
Frequently asked questions
Convention. Using a visually distinct format for constants makes it immediately clear that a value shouldn't be changed — it stands out from regular variables. This convention dates back to C programming and has been adopted across most languages.