Skip to content
ZeroServer.tools

Laravel APP_KEY Generator

Generate a secure Laravel APP_KEY (base64: + 32 random bytes) ready to paste into your .env file.

APP_KEY=

Security note

Never commit your .env file or APP_KEY to version control. Rotate the key immediately if it is ever exposed — doing so will invalidate all encrypted cookies and sessions. Generated locally — never transmitted.

What is the Laravel APP_KEY?

Laravel's APP_KEY is a 256-bit (32-byte) random value encoded as base64:.... It powers Laravel's encryption facilities (AES-256-CBC), signed cookies, encrypted session data, and the Crypt facade. Without a strong, unique key, encrypted values can be forged or decrypted by an attacker. Running php artisan key:generate does exactly what this tool does — generates 32 secure random bytes and base64-encodes them. This generator uses crypto.getRandomValues for the same level of cryptographic strength, directly in your browser.

Private & free — this tool runs entirely in your browser.

Recommended: Cloudways Managed cloud hosting on AWS, GCP & DO — from $11/mo.affiliate

Related Generators tools