Skip to content
TabKiwiTabKiwi

CONSTANT_CASE Converter

Turn names into SCREAMING_SNAKE_CASE for constants, enum values and environment variables.

TextRuns in your browser. Your files never leave this device.
Loading tool…

About this tool

CONSTANT_CASE (also called screaming snake case) uses capital letters with underscores between words, like MAX_RETRY_COUNT. It's how constants, enum members and environment variables are usually named. Paste a list of names in any style and convert them all at once, privately in your browser.

How to use CONSTANT_CASE Converter

  1. Paste names or phrases, one per line.
  2. Each one is converted to CONSTANT_CASE.
  3. Copy the results into your config or code.

Frequently asked questions

How are word boundaries detected?

Spaces, underscores, hyphens, dots and slashes all split words, and so do changes from lowercase to uppercase. That means "user first name", "user_first_name" and "userFirstName" all become USER_FIRST_NAME.

Is this valid for environment variable names?

The output only contains letters, digits and underscores, which is safe for environment variables. If a name starts with a digit, add a prefix, since most shells don't allow that.

Can I convert many names at once?

Yes. Paste one name per line and every line is converted on its own, so a whole column of field names or variables converts in one go.

More Text tools

View all 60 →