Environment Variable Name Generator
Generates conventional SCREAMING_SNAKE_CASE environment variable names
- PAYOUTS_MAX_RETRIES
- RETURNS_HEALTHCHECK_URL
- FRAUD_BATCH_SIZE
- SERVICE_ACCOUNT_KEY_PATH
- APP_ENV
- CAPTCHA_ENABLED
- ONBOARDING_CACHE_TTL_SECONDS
- SHIPPING_ENABLED
Generated 8 items
See 3 examples
- Example 1
PAYOUTS_MAX_RETRIES RETURNS_HEALTHCHECK_URL FRAUD_BATCH_SIZE SERVICE_ACCOUNT_KEY_PATH APP_ENV CAPTCHA_ENABLED ONBOARDING_CACHE_TTL_SECONDS SHIPPING_ENABLED
- Example 2
BILLING_API_KEY APP_PUBLIC_URL ASSET_PREFIX APP_TIMEZONE COUPONS_API_KEY ONBOARDING_BATCH_SIZE REPORTING_CACHE_TTL_SECONDS INVENTORY_CACHE_TTL_SECONDS
- Example 3
FEATURE_IMAGE_RESIZING_ENABLED CHECKOUT_QUEUE_NAME ENABLE_NEW_CHECKOUT COMMENTS_WORKER_COUNT FEATURE_MULTI_CURRENCY_ENABLED LOYALTY_API_URL IMPORTS_WORKER_COUNT RECOMMENDATIONS_ENABLED
About this generator
Configuration variable naming is one of those low-visibility decisions that affects maintainability for the life of a project. The near-universal convention is SCREAMING_SNAKE_CASE with a domain prefix — DB_HOST, CACHE_URL, PAYMENT_SECRET_KEY — because it distinguishes env vars from local variables at a glance and groups related settings together visually. This generator produces well-formed names following that convention, useful for populating a .env.example file, scaffolding config for a new service, or generating naming inspiration without reinventing each variable from scratch. The count input controls how many variable names to generate, from 1 to 30. There are no other inputs. Names come from four families drawn from a pool of over a thousand: infrastructure settings with a subsystem prefix (DB_POOL_SIZE, CACHE_TTL_SECONDS, SMTP_FROM_ADDRESS, OAUTH_REDIRECT_URI, TRACING_SAMPLE_RATE), service-scoped settings for a microservice setup (BILLING_SERVICE_URL, ORDERS_QUEUE_NAME, INVENTORY_TIMEOUT_MS), feature flags (FEATURE_GUEST_CHECKOUT_ENABLED, ENABLE_AUDIT_LOG), and common standalone settings (MAX_UPLOAD_SIZE_MB, TRUST_PROXY, GIT_COMMIT_SHA). Each prefix is only paired with suffixes that make sense for it, units are spelled out in the name where they matter (_MS, _SECONDS, _MB), and duplicate names within a single run are removed. Use the output as a starting list for a .env.example file: keep the names, replace the values with empty strings or placeholder comments, and commit it so teammates know which variables the application expects without committing actual secrets.
How to use
- Choose how many variable names you want.
- Click Generate to produce SCREAMING_SNAKE_CASE names.
- Use them in a .env example, config, or documentation.
- Adapt the prefixes and names to your actual settings.
Use Cases
- •Placeholder names in a .env example file
- •Scaffolding configuration for a new project
- •Naming environment variables consistently
- •Documentation and tutorial config examples
- •Inspiration for grouping config by prefix
Tips
- →Group related variables under a common prefix for readability.
- →Keep a committed .env.example with names but no real values.
- →Never commit real secrets — store them in a secrets manager.
- →Be consistent: pick a convention and apply it across the whole config.
FAQ
why are environment variables uppercase
The strong convention is SCREAMING_SNAKE_CASE — uppercase words joined by underscores — which distinguishes environment variables from ordinary shell or program variables and is consistent across operating systems and tools. Following it makes a configuration instantly recognisable and predictable.
should I prefix related variables
Yes — grouping related variables under a common prefix like DB_ or PAYMENT_ makes a configuration much easier to scan and reason about. A prefix signals which subsystem a value belongs to and helps avoid name clashes between unrelated settings.
where should I store environment variables
In a .env file for local development (kept out of version control) and in a secrets manager or your platform's environment configuration in production. Never commit real secrets to a repository; use placeholder names like these in any committed example file.
does the generator guarantee unique names in a single run
Yes. The generator uses a Set to deduplicate names within a single run, so you will not receive the same variable name twice, and a feature flag never appears in both its FEATURE_..._ENABLED and ENABLE_... forms in one list. The pool holds over a thousand names, so even a full run of 30 is always filled.
You might also like
Popular tools from other categories that share themes with this one.