SCREAMING_SNAKE_CASE Converter
ALL_CAPS_WITH_UNDERSCORES
Overview
Convert any text into SCREAMING_SNAKE_CASE — all uppercase, words joined by underscores. It's the conventional format for constants and environment variables in most programming languages (MAX_RETRIES, DATABASE_URL, API_BASE_URL).
Developers normalizing constant names, devops engineers wrangling environment-variable lists, and code generators producing .env files all use it. It's also a quick way to convert UI labels into the matching constant names without manually retyping.
How it works
The converter splits your input on word boundaries: whitespace, hyphens, dots, and case transitions in camelCase or PascalCase inputs. It uppercases each resulting word and joins them with a single underscore. Multiple separators collapse into one underscore, leading and trailing underscores are removed, and non-alphanumeric characters are stripped.
Examples
Input: hello world
Output: HELLO_WORLD
Input: userProfileImage
Output: USER_PROFILE_IMAGE
Input: max-retry-count
Output: MAX_RETRY_COUNT
Input: database url
Output: DATABASE_URL
FAQ
When should I use SCREAMING_SNAKE_CASE?
For constants in most languages (C, Java, Python, Rust, Go), for environment variables, and for fixed enum values. Avoid it for regular variable or function names.
What's the difference between SCREAMING_SNAKE_CASE and snake_case?
Both use underscores between words. snake_case is all lowercase (max_retries); SCREAMING_SNAKE_CASE is all uppercase (MAX_RETRIES). Most languages reserve the uppercase form for constants.
Are numbers preserved?
Yes. Digits stay where they are, attached to whichever word they belong to: MAX_RETRIES_2 stays as MAX_RETRIES_2.