openssl_decrypt Online
Test PHP's openssl_decrypt() function online using real PHP 8.2. Decrypt data using various cipher methods like AES-256-CBC, AES-128-GCM, and more.
openssl_decrypt(string $data, string $cipher_algo, string $passphrase, int $options = 0, string $iv = "", string $tag = null, string $aad = ""): string|false Cipher Method
Select the encryption algorithm used
Passphrase / Key
The secret key used for encryption
Encrypted Data (Base64)
The encrypted string to decrypt
Initialization Vector (IV)
Must match the IV used during encryption
PHP Code
This is the actual PHP code that will be executed
Loading editor...
Common Examples
openssl_decrypt() Function Guide
Key Features
This tool is a free online PHP compiler that runs directly in your browser. It allows you to execute openssl_decrypt() functions instantly without setting up a local environment, making it perfect for quick testing and debugging decryption issues.
- Decodes Base64 input automatically (standard PHP behavior)
- Supports all common cipher methods
- Helps verify if keys and IVs match
Troubleshooting
- Returns False? Check if the Key and IV are exactly correct.
- Garbage Output? The cipher method might be wrong.
- Padding Error? The data might be corrupted or truncated.
Request a Feature
Have an idea to improve this tool? Share your suggestions and help us make it better! (One request per day)

