OS Garage

Developer Case Tool

CONSTANT_CASE Converter

Convert text to CONSTANT_CASE for environment variables and constants.

Features

All Uppercase Output

Every letter is converted to uppercase — the defining characteristic of CONSTANT_CASE.

Underscore Word Separation

Words are joined with underscores, making long names highly readable.

Handles All Input Formats

Converts from camelCase, PascalCase, snake_case, kebab-case, and natural language.

How to Use

  1. 1

    Enter your constant name or phrase

    Paste a variable name, phrase, or existing identifier.

  2. 2

    Get CONSTANT_CASE output

    The output appears in UPPERCASE_WITH_UNDERSCORES format instantly.

  3. 3

    Use in configuration or code

    Copy the result for use in .env files, Dockerfile, or code constants.

Examples

Config key

Input

database connection url

Output

DATABASE_CONNECTION_URL

From camelCase

Input

maxRetryCount

Output

MAX_RETRY_COUNT

API key name

Input

stripe secret key

Output

STRIPE_SECRET_KEY

Common Questions

It is called 'screaming' because it is in ALL CAPS (as if shouting), and 'snake' because words are separated by underscores like snake_case.

Use CONSTANT_CASE for values that are fixed at compile time or loaded once from the environment and never change at runtime — constants, environment variables, enum values.