.env · create🔥 popular

ENV Generator

Generate .env templates for Node.js, Next.js, Django, Rails, Laravel, and more. Ready-to-use boilerplates with sensible defaults.

Be the first to rate
# Next.js
NEXT_PUBLIC_SITE_URL=http://localhost:3000
DATABASE_URL=postgresql://user:password@localhost:5432/mydb
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=NKXyuV3YME15pZfKnCwXJuRu2vTwIPEt350OqXqGTCYCGAvn
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=
STRIPE_SECRET_KEY=sk_test_
STRIPE_WEBHOOK_SECRET=whsec_
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_
  • NEXT_PUBLIC_SITE_URL
    Next.js · http://localhost:3000
  • DATABASE_URL
    Next.js · postgresql://user:password@l…
  • NEXTAUTH_URL
    Next.js · http://localhost:3000
  • NEXTAUTH_SECRET
    Next.js · NKXyuV3YME15pZfKnCwXJuRu2vTw…
  • NEXT_PUBLIC_SUPABASE_URL
    Next.js · empty
  • NEXT_PUBLIC_SUPABASE_ANON_KEY
    Next.js · empty
  • SUPABASE_SERVICE_ROLE_KEY
    Next.js · empty
  • STRIPE_SECRET_KEY
    Next.js · sk_test_
  • STRIPE_WEBHOOK_SECRET
    Next.js · whsec_
  • NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY
    Next.js · pk_test_

click any row's copy button to grab just that line

What it does

  • Ready-made templates for Node.js, Next.js, Django, Rails, Laravel
  • Service-specific templates (Stripe, Firebase, Supabase, OpenAI)
  • Auto-generates secrets in-place (JWT, session, APP_KEY)
  • Download or copy the final .env in one click
  • Stack-aware naming conventions

Privacy

Runs 100% in your browser. Your .env never touches our servers.

client-side only

Usage examples

Case 1 · Next.js base
stacks: nextjs
NEXT_PUBLIC_SITE_URL=http://localhost:3000
DATABASE_URL=postgresql://user:password@localhost:5432/mydb
NEXTAUTH_SECRET=<48-byte-random>
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
Case 2 · Stripe service
stacks: stripe
STRIPE_SECRET_KEY=sk_test_
STRIPE_PUBLISHABLE_KEY=pk_test_
STRIPE_WEBHOOK_SECRET=whsec_
STRIPE_PRICE_ID_PRO=price_
Case 3 · Combined (Next.js + Stripe + Supabase)
stacks: nextjs + stripe + supabase
# Next.js
NEXT_PUBLIC_SITE_URL=...
NEXTAUTH_SECRET=<random>

# Stripe
STRIPE_SECRET_KEY=sk_test_
STRIPE_WEBHOOK_SECRET=whsec_

# Supabase
NEXT_PUBLIC_SUPABASE_URL=https://xxxx.supabase.co
SUPABASE_SERVICE_ROLE_KEY=

When to use this tool

  • Starting a new project and want a sensible .env scaffold
  • Bootstrapping a .env.example for a repo that's missing one
  • Combining stacks (e.g. Next.js + Stripe + Supabase) in one file
  • Onboarding new teammates with a known-good starting config
  • Generating fresh secrets when rotating keys

Common mistakes

  • Shipping generated template values to production (the defaults are placeholders)
  • Committing the generated file instead of the example — always strip values with the .env.example generator first
  • Forgetting the NEXT_PUBLIC_ prefix for anything you want exposed to the browser
  • Mixing Stripe test (sk_test_) and live (sk_live_) keys in the same file — pick one per environment

ENV Generator — .env templates for every stack

Stop copy-pasting .env.example files from GitHub. The env generator produces ready-to-paste environment files for Node.js, Next.js, Django, Rails, Laravel, and popular services like Stripe, Firebase, and Supabase. Secrets are generated with crypto.getRandomValues right in your browser.

Supported stacks

  • Node.js — Express or Fastify with JWT and Postgres
  • Next.js — App Router with NextAuth, Supabase, Stripe
  • Django — Postgres, Redis, Celery
  • Rails — Rails 7 with Sidekiq
  • Laravel — Laravel 11 with MySQL and Redis

Service templates

  • Stripe — publishable, secret, and webhook keys
  • Firebase — client SDK + admin SDK config
  • Supabase — URL, anon, service role, JWT secret
  • OpenAI / Anthropic — standard AI stack keys

Related tools

Learn more

coming soon

Get notified when env syncing launches

We're building a tiny tool to keep .env files in sync across teammates and environments. Leave your email — no spam, just a single launch ping.