Converter Web ToolsConverter WebTools

Constant Case Converter

Convert text to CONSTANT_CASE instantly in your browser.

Input
Output
Share Link
Settings

What is CONSTANT_CASE?

CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) writes words in uppercase and separates them with underscores, like MAX_SIZE or API_KEY. It is the conventional style for constants and environment variables in most programming languages. This tool converts any text to CONSTANT_CASE instantly in your browser.

How to use

  1. Paste your text into the input box.
  2. The CONSTANT_CASE result appears instantly.
  3. Click Copy to use it.

Examples

InputCONSTANT_CASE
max sizeMAX_SIZE
apiKeyAPI_KEY
default-timeoutDEFAULT_TIMEOUT
First NameFIRST_NAME

Common uses

  • Naming constants in code.
  • Environment variable names (API_KEY, DB_HOST).
  • Configuration keys that should stand out.

Frequently asked questions

What is CONSTANT_CASE?
Uppercase words separated by underscores — essentially uppercase snake_case.
Where is it used?
For constants and environment variables in nearly every language.
What happens to separators?
Spaces, hyphens and camelCase boundaries are converted to underscores.