DES Encrypt / Decrypt
Encrypt and decrypt data with the DES algorithm in CBC, CFB, CTR, OFB, and ECB modes
How to use DES Encrypt / Decrypt
Enter your data and key
Type or paste the text to encrypt or decrypt and enter your 8-character (56-bit effective) DES key.
Configure mode
Select a mode of operation (CBC is most common for legacy systems) and provide an IV if required.
Click Encrypt or Decrypt
The output appears instantly in your browser.
Copy the result
Click Copy to use the output in your application.
Operation
What is DES encryption?
In July 1998 the Electronic Frontier Foundation built a machine from 1,856 custom chips for roughly $250,000 and recovered a DES key in 56 hours. The following January, distributed.net and that same machine did it in 22 hours and 15 minutes. DES had been the U.S. federal standard for twenty-one years, and the demonstration ended the argument about whether 56 bits was enough.
DES encrypts 64-bit blocks under a key with 56 effective bits — 2^56 possibilities, a space that commodity cloud hardware now walks through in minutes rather than hours. It is offered here for decrypting legacy material and for study, never for protecting anything new. All five modes are available: CBC, CFB, CTR, OFB, and ECB.
The standard's origins explain some of its shape. IBM's Lucifer cipher was submitted to the National Bureau of Standards, revised with input from the NSA, and published in 1977 as FIPS 46 with the key shortened from Lucifer's 112 bits to 56 — a reduction that drew immediate criticism from Diffie and Hellman, who argued that year that a purpose-built cracking machine was already affordable to a well-funded adversary. NIST withdrew the standard in 2005.
What survives DES is its structure rather than its security. The Feistel network it popularised — splitting each block in half and running a round function so that decryption is encryption with the key schedule reversed — reappears in Blowfish, Camellia, and dozens of later designs. Its S-boxes were the first widely studied example of deliberately non-linear substitution, and the NSA's unexplained adjustments to them turned out, once differential cryptanalysis was published openly in 1990, to have hardened the cipher against precisely that attack. For anything you actually need to protect, use AES-256; for how the families compare, see our encryption algorithms guide.
Frequently asked questions
Why is DES considered insecure?
DES uses a 56-bit key, which provides only 2^56 possible keys. Modern hardware can try all possible keys in a matter of hours, making DES vulnerable to brute-force attacks. It was officially retired by NIST in 2005.
What is the difference between DES and Triple DES?
Triple DES (3DES) applies DES three times with two or three independent keys, achieving 112-bit or 168-bit effective key strength. It is slower than AES but was used as an interim upgrade from single DES before AES was widely adopted.
When would I use DES?
Only when interoperating with legacy systems that were built before AES adoption and cannot be updated. No new system should use DES for security.
Can DES-encrypted data be cracked by an attacker?
Yes. A dedicated machine can brute-force a 56-bit DES key in under a day. The EFF's Deep Crack machine demonstrated this in 1998, and modern cloud hardware is far faster. Never use single DES for data that needs to remain confidential.
How do I decrypt data from a legacy system that used DES?
You need the original 8-character (56-bit effective) DES key and the mode of operation that was used during encryption. Most legacy systems used DES-CBC. Enter the ciphertext (typically Base64-encoded), the key, and select CBC mode. If you do not have the key, DES cannot be decrypted without brute-force, though the weak 56-bit key makes brute-force feasible with specialized tools.
What replaced DES as the encryption standard?
AES (Advanced Encryption Standard) replaced DES in 2001 after a five-year public competition organized by NIST. The Rijndael algorithm was selected from 15 candidates. AES supports 128, 192, and 256-bit keys, provides much stronger security, and runs faster than DES on modern hardware. You can use AES encryption on this site for secure encryption.
Related tools
JSON Formatter
Format, validate, and prettify JSON data online for API debugging and code review
Base64 Encoder
Encode and decode Base64 strings and files for APIs, emails, and data URIs
URL Encoder
Encode and decode URL components online for safe query strings and API parameters
Hash Generator
Generate MD5, SHA-256, SHA-512, BLAKE3, and 25+ cryptographic hashes to verify file integrity
Regex Tester
Test and debug regular expressions online with live matching and capture groups