Constant Case Converter

Convert text to CONSTANT_CASE for constants and env variables.

Keep or share the finished result Copy or share after running the tool. Saved tools and settings stay in this browser.
More

Convert text to CONSTANT_CASE

Paste a phrase above to convert it to CONSTANT_CASE, also called SCREAMING_SNAKE_CASE: every word is uppercased and the words are joined with underscores. This is the convention for constants, enum values and environment variable names across most programming languages. Copy the result with one click.

CONSTANT_CASE vs snake_case

They share the underscore separator, but snake_case is all lowercase (my_value) while CONSTANT_CASE is all uppercase (MY_VALUE). Uppercase signals a fixed constant or environment variable.

Frequently asked questions

What is CONSTANT_CASE for?

Constants, enum values and environment variable names, where all-caps with underscores signals a fixed value.

Is it the same as snake_case?

It uses the same underscores but in all uppercase, while snake_case is all lowercase.