• Free forever
  • No sign-up
  • Private — runs in your browser

CONSTANT_CASE Converter

Uppercase words joined by underscores — the standard style for constants and environment variables.

Text
Code

Where it's used

  • Environment variables: DATABASE_URL, NODE_ENV.
  • Constants in JavaScript, Python (PEP 8), Java, C and Rust: MAX_RETRY_COUNT = 3.
  • Enum members in Java and TypeScript: Status.NOT_FOUND.
  • C preprocessor macros: #define BUFFER_SIZE 1024.

Also known as

SCREAMING_SNAKE_CASE, MACRO_CASE or UPPER_SNAKE_CASE — it's snake_case in capitals. Paste several lines to convert a whole .env template at once; each line converts on its own.

Naming tips

  • Include the unit in the name: TIMEOUT_MS, MAX_SIZE_MB.
  • Prefix related settings: SMTP_HOST, SMTP_PORT, SMTP_USER.

Related

← Back to the full Case Converter