Laravel APP_KEY Generator

A valid Laravel APP_KEY: 32 random bytes, base64-encoded, generated in your browser.

Very strong0 bitsGenerated in your browser

Local alternative

php artisan key:generate

Prefer generating secrets on the machine that uses them? This command produces an equivalent value.

Official documentation

Laravel encrypts sessions, cookies and everything passed through the Crypt facade with the APP_KEY. The value is base64 of exactly 32 bytes, which is why it carries the base64: prefix. Replacing the key of a running application makes already-encrypted data and existing sessions undecryptable.

Frequently asked questions