Skip to content
My Convert Case

SCREAMING_SNAKE_CASE Converter — Convert Text Online Free

Change the case of your text by entering it below and choosing your desired case
0 characters • 0 words

What is SCREAMING_SNAKE_CASE?

SCREAMING_SNAKE_CASE is a naming convention that combines two rules: all letters are uppercase, and words are separated by underscores. It looks like this: DATABASE_URL, API_KEY, NODE_ENV, MAX_RETRY_COUNT.

The "screaming" part refers to the all-caps styling — it visually shouts at you, which is intentional. This format is reserved for values that are fixed at configuration or compile time: constants, environment variables, and feature flags.

SCREAMING_SNAKE_CASE is the universal standard across virtually every major programming language for compile-time constants and environment variables. Python PEP 8 mandates it for module-level constants. C and C++ use it for preprocessor macros. Java and Kotlin use it for static final constants. The POSIX standard requires it for environment variable names.

Example

InputOutput (SCREAMING_SNAKE_CASE)
hello worldHELLO_WORLD

How to Convert to SCREAMING_SNAKE_CASE

  1. Paste your text — a variable name, a configuration key, or any phrase.
  2. Click SCREAMING_SNAKE_CASE.
  3. Copy the all-caps underscore-separated result for use as a constant or environment variable name.

When to Use SCREAMING_SNAKE_CASE

Use SCREAMING_SNAKE_CASE whenever you are declaring a value that is fixed and should not change at runtime:

- **Environment variables:** DATABASE_URL, API_KEY, NODE_ENV, PORT, SECRET_KEY - **Language-level constants:** MAX_CONNECTIONS, DEFAULT_TIMEOUT, APP_VERSION - **Configuration flags:** ENABLE_FEATURE_X, DEBUG_MODE, STRICT_MODE - **C/C++ preprocessor macros**

The visual distinctiveness of SCREAMING_SNAKE_CASE is intentional — it signals to every reader that this value is a constant, not a regular variable.

Common Use Cases for SCREAMING_SNAKE_CASE

  • Environment variable names (DATABASE_URL, API_KEY, NODE_ENV)
  • Python module-level constants (PEP 8 mandated)
  • C/C++ preprocessor macros and constants
  • Java and Kotlin static final constants
  • Configuration keys for deployment environments
  • Feature flag identifiers

Frequently Asked Questions

What is SCREAMING_SNAKE_CASE?

SCREAMING_SNAKE_CASE is a naming convention where all letters are uppercase and words are separated by underscores: DATABASE_URL, API_KEY, MAX_RETRY_COUNT. The "screaming" refers to the all-caps styling. It is the universal standard for constants and environment variables across most programming languages.

What is SCREAMING_SNAKE_CASE used for?

SCREAMING_SNAKE_CASE is used for compile-time constants and environment variables: DATABASE_URL, SECRET_KEY, MAX_CONNECTIONS, NODE_ENV. Python PEP 8 mandates it for module-level constants. The POSIX standard requires it for environment variable names. C/C++ uses it for preprocessor macros.

What is the difference between snake_case and SCREAMING_SNAKE_CASE?

snake_case uses all lowercase with underscores (my_variable), typically for function and variable names. SCREAMING_SNAKE_CASE uses all uppercase with underscores (MY_CONSTANT), reserved for constants and environment variables. The visual distinction signals mutability: snake_case for values that can change, SCREAMING_SNAKE_CASE for values that should not.

Does Python require SCREAMING_SNAKE_CASE for constants?

Python PEP 8 specifies that module-level constants should be written in SCREAMING_SNAKE_CASE. Python does not enforce immutability at the language level, so it is a convention enforced by style guides and linters (flake8, pylint), not the interpreter.

Related Converters