Skip to main content
Dev · 283 tools

Dummy Environment Variable Set Generator

Generates realistic .env file contents with fake but plausible values for common tech stacks

Generated .env FileExample — click Generate for yours
# Application NODE_ENV=development PORT=3741 APP_SECRET=117c4cb483b8bf2c326fbc9c23c4bead # Database DATABASE_URL=postgresql://postgres:f1a4883a74318775@localhost:5432/yubbg_staging DB_HOST=localhost DB_PORT=5432 DB_NAME=yubbg_staging DB_USER=postgres DB_PASSWORD=f1a4883a74318775 # Redis REDIS_URL=redis://:0e605fa0b15016b9c22f@localhost:6379 REDIS_PASSWORD=0e605fa0b15016b9c22f # Authentication JWT_SECRET=32a24bded00ec9ffb0bd1d21abf3298bc1ce7bd7a4b1c74d JWT_EXPIRES_IN=7d SESSION_SECRET=884b146d89963388e9c52a25 # Email (SMTP) SMTP_HOST=smtp.mailgun.org SMTP_PORT=587 SMTP_USER=postmaster@wvdkijdi.mailgun.org SMTP_PASS=0d7c08f5073e EMAIL_FROM=noreply@etjgtupz.com # AWS AWS_ACCESS_KEY_ID=AKIA938D626820CF2C23 AWS_SECRET_ACCESS_KEY=uZGUxqM6NCR2gDAaFkOgPQ2N5Sj63kEjZV0hvCVL AWS_REGION=us-east-1 AWS_S3_BUCKET=nqmeyk-uploads # Stripe STRIPE_SECRET_KEY=sk_test_dabb3166139174c5aa35fe6e STRIPE_WEBHOOK_SECRET=whsec_ef9a534316e69b09228ad9708c905a15 # Monitoring SENTRY_DSN=https://d7953eb79e91ce99@o4686293.ingest.sentry.io/2674588

Generated 43 words · 1,028 characters

See 3 examples
  • Example 1
    # Application
    NODE_ENV=development
    PORT=3741
    APP_SECRET=117c4cb483b8bf2c326fbc9c23c4bead
    # Database
    DATABASE_URL=postgresql://postgres:f1a4883a74318775@localhost:5432/yubbg_staging
    DB_HOST=localhost
    DB_PORT=5432
    DB_NAME=yubbg_staging
    DB_USER=postgres
    DB_PASSWORD=f1a4883a74318775
    # Redis
    REDIS_URL=redis://:0e605fa0b15016b9c22f@localhost:6379
    REDIS_PASSWORD=0e605fa0b15016b9c22f
    # Authentication
    JWT_SECRET=32a24bded00ec9ffb0bd1d21abf3298bc1ce7bd7a4b1c74d
    JWT_EXPIRES_IN=7d
    SESSION_SECRET=884b146d89963388e9c52a25
    # Email (SMTP)
    SMTP_HOST=smtp.mailgun.org
    SMTP_PORT=587
    SMTP_USER=postmaster@wvdkijdi.mailgun.org
    SMTP_PASS=0d7c08f5073e
    EMAIL_FROM=noreply@etjgtupz.com
    # AWS
    AWS_ACCESS_KEY_ID=AKIA938D626820CF2C23
    AWS_SECRET_ACCESS_KEY=uZGUxqM6NCR2gDAaFkOgPQ2N5Sj63kEjZV0hvCVL
    AWS_REGION=us-east-1
    AWS_S3_BUCKET=nqmeyk-uploads
    # Stripe
    STRIPE_SECRET_KEY=sk_test_dabb3166139174c5aa35fe6e
    STRIPE_WEBHOOK_SECRET=whsec_ef9a534316e69b09228ad9708c905a15
    # Monitoring
    SENTRY_DSN=https://d7953eb79e91ce99@o4686293.ingest.sentry.io/2674588
  • Example 2
    # Application
    NODE_ENV=development
    PORT=7413
    APP_SECRET=1be9b6824c3831b0233fc86770a1f9b4
    # Database
    DATABASE_URL=postgresql://postgres:53f06e7f00ec0fde@localhost:5432/wdyjx_dev
    DB_HOST=localhost
    DB_PORT=5432
    DB_NAME=wdyjx_dev
    DB_USER=postgres
    DB_PASSWORD=53f06e7f00ec0fde
    # Redis
    REDIS_URL=redis://:70e2fba2a8efcc8215fe@localhost:6379
    REDIS_PASSWORD=70e2fba2a8efcc8215fe
    # Authentication
    JWT_SECRET=76b04e2a35a81c068f202c7bc38cdd53e1abfc0a0c2b5634
    JWT_EXPIRES_IN=7d
    SESSION_SECRET=73d7642fe1faf88d78aa8730
    # Email (SMTP)
    SMTP_HOST=smtp.mailgun.org
    SMTP_PORT=587
    SMTP_USER=postmaster@ezitlohm.mailgun.org
    SMTP_PASS=8a0bd5d1e4c5
    EMAIL_FROM=noreply@wincawvk.com
    # AWS
    AWS_ACCESS_KEY_ID=AKIA5A9593F6498F10B6
    AWS_SECRET_ACCESS_KEY=7pCipiYhda31xafhCrgZf2P4cUSKMtQ2FCvMBnoC
    AWS_REGION=us-east-1
    AWS_S3_BUCKET=xbgglh-uploads
    # Stripe
    STRIPE_SECRET_KEY=sk_test_c62e3e86e574500f0024e019
    STRIPE_WEBHOOK_SECRET=whsec_046fa078cff80a601b2ae366be290728
    # Monitoring
    SENTRY_DSN=https://a7efbe50e656ff66@o6486488.ingest.sentry.io/6572730
  • Example 3
    # Application
    NODE_ENV=development
    PORT=4326
    APP_SECRET=04fbc717126bba1be494f326e045a641
    # Database
    DATABASE_URL=postgresql://postgres:7e93860aac9313a0@localhost:5432/djdju_staging
    DB_HOST=localhost
    DB_PORT=5432
    DB_NAME=djdju_staging
    DB_USER=postgres
    DB_PASSWORD=7e93860aac9313a0
    # Redis
    REDIS_URL=redis://:13dacf692b8301091267@localhost:6379
    REDIS_PASSWORD=13dacf692b8301091267
    # Authentication
    JWT_SECRET=5151e16a309a91c42a4347846ccbd27c9f37d84f1d12e991
    JWT_EXPIRES_IN=7d
    SESSION_SECRET=5d122359932c7d3459280cab
    # Email (SMTP)
    SMTP_HOST=smtp.mailgun.org
    SMTP_PORT=587
    SMTP_USER=postmaster@qimzbuqt.mailgun.org
    SMTP_PASS=6cc002ef74be
    EMAIL_FROM=noreply@wxcfzfwc.com
    # AWS
    AWS_ACCESS_KEY_ID=AKIACDC91A684F7F8B15
    AWS_SECRET_ACCESS_KEY=gOc9c6Cj5hUAdKQR66Xmwo1XT9fiRKy+CDFB1C8d
    AWS_REGION=us-east-1
    AWS_S3_BUCKET=nfkout-uploads
    # Stripe
    STRIPE_SECRET_KEY=sk_test_53c9e2b1b6d662aab7def9e5
    STRIPE_WEBHOOK_SECRET=whsec_17045e372526d15752ccb30ccd7083c0
    # Monitoring
    SENTRY_DSN=https://ed0358a4297a7ca8@o5571758.ingest.sentry.io/4019162

About this generator

Creating a `.env.example` file by hand means scrubbing real secrets from your `.env`, tracking down every variable name, and formatting values correctly. A dummy environment variable set generator skips all of that — pick your stack and get a complete file with fake but structurally correct values for every common integration. The `stack` input determines variable names and value formats. Node.js/Express outputs DATABASE_URL, JWT_SECRET, AWS keys, Stripe keys, and a Sentry DSN. Django outputs DJANGO_SECRET_KEY with the insecure- prefix and CELERY_BROKER_URL. Next.js outputs NEXTAUTH_SECRET, OAuth client credentials, and NEXT_PUBLIC_ prefixed Stripe key. Laravel uses APP_KEY with base64: prefix. Rails outputs SECRET_KEY_BASE and SIDEKIQ_REDIS_URL. The `includeComments` input toggles section headers like `# Database` above each group — useful for .env.

How to use

  1. Select your project's tech stack from the 'Tech Stack' dropdown — choose Node.js/Express, Django, Next.js, Laravel, or Ruby on Rails.
  2. Set 'Include Comments' to Yes if you want inline explanations for each variable, or No for a clean variable-only file.
  3. Click Generate to produce a complete .env file with fake but correctly formatted values for your chosen stack.
  4. Copy the output and paste it into a new .env or .env.example file at the root of your project directory.
  5. Replace any placeholder values you want to customize, then use the file as a configuration template or commit it as .env.example.

Use Cases

  • •Committing a .env.example to a public GitHub repo without stripping real secrets by hand
  • •Scaffolding a fresh Next.js or Laravel project with a complete config file in seconds
  • •Writing a dev blog post or Hashnode tutorial that needs a realistic but safe configuration sample
  • •Testing Joi or Zod schema validation against a fully populated, structurally correct config object
  • •Onboarding new contributors to an open source project with commented variable explanations

Tips

  • →Enable comments when creating .env.example files for public repos — future contributors will thank you for the inline documentation.
  • →If your stack isn't listed, generate the Node.js output as a base; most backend frameworks share database, Redis, and auth variable patterns.
  • →Run the generator twice and compare outputs to quickly see which variables are randomized vs. static — helpful when writing validation tests.
  • →For tutorial screenshots or blog post code blocks, the formatted output with comments looks professional and immediately credible to readers.
  • →Paste the output into a secrets manager import template (like AWS Secrets Manager or Doppler) to pre-populate a dev environment scaffold.
  • →Use the comment-free output when feeding the file into a dotenv parser test — comments can introduce edge cases that distract from what you're actually testing.

FAQ

how do I create a .env.example file without exposing real credentials

Generate the output for your stack with comments enabled, then save it as .env.example in your repo root. All values are fake but structurally correct — AWS keys carry the AKIA prefix, Stripe keys use sk_test_ or whsec_ prefixes, and JWTs use realistic lengths. If you want to make it clear these are placeholders, swap specific values for YOUR_SECRET_HERE before committing, but the generated file is already safe to commit as-is.

are the generated environment variables safe to use in production

No — every value is a realistic fake and will be rejected by real services. AWS keys, Stripe tokens, database passwords, and Sentry DSNs are structurally correct but not valid. Use this output for .env.example templates, tutorials, and documentation only. Generate real secrets with OpenSSL (openssl rand -hex 32), AWS IAM, or your platform's secrets manager.

what is the difference between the stack options in the generator

Each stack produces variable names that match its framework's conventions. Django uses DJANGO_SECRET_KEY and a django-insecure- prefix; Laravel uses APP_KEY with a base64: prefix and separate DB_* variables; Next.js uses NEXT_PUBLIC_ for client-visible variables; Rails uses SECRET_KEY_BASE and SIDEKIQ_REDIS_URL. Switching stacks changes both the variable names and the value format, not just the comments.

You might also like

Popular tools from other categories that share themes with this one.