Laravel App Key Generator
Securely generate Laravel-style application keys. Standard Laravel keys are 32-byte random strings encoded in base64. Everything runs locally in your browser.
Usage: Copy the generated key and paste it into your .env file. Laravel uses this key to encrypt cookies, session data, and other sensitive information. Changing this key will invalidate all existing sessions and encrypted data.
Your Data Never Leaves Your Device
Every tool runs entirely in your browser. Nothing you type is uploaded, stored, or logged on our servers.
This tool creates secure random keys suitable for Laravel's APP_KEY. The default generates 32 bytes and outputs abase64:-prefixed key that can be pasted directly into a.env file.
Everything runs client-side using the Web Crypto API — nothing is transmitted to a server.
FAQ
It generates a base64-encoded application key in the format Laravel expects for the APP_KEY value used to encrypt sessions and cookies.
No. The key is created client-side in your browser using secure randomness, so it never leaves your machine.
Set it as APP_KEY in your project's .env file, typically prefixed with base64:, which is the same format php artisan key:generate produces.
Laravel uses APP_KEY to encrypt data such as sessions and cookies. Without a valid key, encryption and some security features will not work correctly.
Be careful: changing APP_KEY invalidates existing encrypted data like sessions and signed cookies, so users may be logged out.