What is CONSTANT_CASE?
CONSTANT_CASE uses the same word boundaries as snake_case, but converts every detected word to uppercase.
The converter runs entirely in your browser. Your input is not uploaded or stored, and Unicode characters remain Unicode rather than being transliterated.
How this conversion works
- Split input at separators, punctuation, camel-case changes, and acronym boundaries.
- Uppercase every detected word and join the words with one underscore.
- Keep numbers, Unicode letters, blank lines, and multiline structure.
Constant Case Converter examples
InputOutput
maximum retry countMAXIMUM_RETRY_COUNTapiBaseURLAPI_BASE_URLerror code 404ERROR_CODE_404café modeCAFÉ_MODECommon uses
- Program constants
- Environment variable names
- Build and configuration flags
Constant Case Converter FAQ
Is CONSTANT_CASE the same as uppercase?
No. CONSTANT_CASE tokenizes the input and inserts underscores; uppercase only changes letter case and preserves punctuation and spacing.
Can the result include numbers?
Yes. Numbers are preserved as tokens, such as error code 404 becoming ERROR_CODE_404.