CONSTANT_CASE Converter

Convert text to CONSTANT_CASE, joining uppercase words with underscores, which is the style used for constants and environment variables. Marks fixed values.

CONSTANT_CASE writes words in uppercase separated by underscores. It marks values that must not change, such as environment variables, compile-time constants, and feature flags.

Output

                

Paste or type something above.

Questions about constant_case converter

Is CONSTANT_CASE a language requirement?
No, it is a convention rather than a rule, but it makes it obvious that a value should not be edited in place.
How do I convert an environment variable back?
Lowercase it and replace the underscores with spaces.
Does it keep digits?
Yes, digits stay attached to the word they belong to.