CONSTANT_CASE Converter

Uppercase words joined with underscores, like MAX_UPLOAD_SIZE or API_BASE_URL.

How to convert to CONSTANT_CASE

  1. Paste your names into the top box, one per line.
  2. The CONSTANT_CASE version appears in the result box.
  3. Copy and paste it into your code or your .env file.

Examples

InputCONSTANT_CASE
max upload sizeMAX_UPLOAD_SIZE
apiBaseUrlAPI_BASE_URL
default-timeoutDEFAULT_TIMEOUT

Where it is used

Why developers like it

The capitals act as a warning sign. When you see TAX_RATE in the middle of some code, you know straight away it is a fixed value set somewhere else and you should not reassign it. That small visual hint prevents a surprising number of bugs.

Frequently asked questions

What is CONSTANT_CASE?

It is snake_case in capital letters. Each word is uppercase and words are separated with underscores, like DEFAULT_TIMEOUT.

Why is it also called SCREAMING_SNAKE_CASE?

Because it is snake_case written in capitals, and capitals feel like shouting. Both names mean exactly the same thing.

Should environment variables be in CONSTANT_CASE?

Yes, that is the strong convention. Names like DATABASE_URL and NODE_ENV are easy to recognise, and some systems treat lowercase variable names differently.

Can I convert CONSTANT_CASE back to camelCase?

Yes. Paste it into our camelCase converter and MAX_RETRY_COUNT becomes maxRetryCount.