Laravel .env Generator

Generate a Laravel .env file with a random APP_KEY in base64 format and database settings.

🔒 100% client-side. Your keys, secrets and values are never sent to any server and never stored.

.env

.env.example (secrets removed)

Input

Output

Paste your .env content

Laravel .env essentials

Laravel reads APP_KEY, APP_ENV, APP_DEBUG and the DB_* settings from .env. Set APP_DEBUG=false in production.

About APP_KEY

The generated key uses the base64: format Laravel expects. You can also run php artisan key:generate. Changing the key invalidates existing encrypted data and sessions.

Frequently asked questions

Can I use this APP_KEY in production?

Yes, it is generated with the browser Web Crypto API, but generate a separate key per environment.

Should .env be committed?

No. Commit only .env.example.