DES Encryption Tool Icon

DES Encryption

Online DES/2DES/3DES encryption and decryption tool, supporting all encryption modes and padding methods. Fully processed locally in the browser for security and efficiency.

Tool Description

DES Encryption is an online DES encryption/decryption tool supporting DES / 2DES / 3DES key sizes, ECB / CBC / CFB / OFB / CTR cipher modes, PKCS#7 / ISO 9797-1 / ANSI X.923 / ISO 10126 / Zero Padding / No Padding padding schemes, and Base64 / Hex / Latin1 / UTF-8 output encodings. All operations run locally in your browser — no data is ever uploaded to any server.

How to Use

  1. Select Mode

    Select the operation mode: Encrypt or Decrypt

  2. Set Key

    Enter or generate a key, and choose the key size: DES (64-bit), 2DES (128-bit), or 3DES (192-bit)

  3. Choose Cipher Mode

    Choose the cipher mode (ECB / CBC / CFB / OFB / CTR). Non-ECB modes require an IV

  4. Configure Parameters

    Select the padding scheme and output encoding, then paste or type your text in the input area

  5. Run & Export

    Click "Encrypt" or "Decrypt" to execute. The result appears on the right — copy or download as needed

Use Cases

  • Data Protection: Encrypt sensitive data (e.g. configuration values, API keys) with DES before storage or transmission
  • Communication Security: Encrypt request parameters in frontend-backend communication to prevent plaintext leaks
  • Legacy System Compatibility: Generate or verify encrypted data when integrating with legacy systems that use DES encryption

Key Advantages

  1. Completely Free

    The tool gives you free daily uses, so everyday encryption/decryption needs are covered at zero cost — no membership required for core features

  2. Local Processing

    All encryption runs locally in your browser; your keys and plaintext never leave your device, protecting your privacy to the maximum

  3. Full Algorithm Coverage

    Supports DES / 2DES / 3DES key sizes, five cipher modes and six padding schemes, covering the most common symmetric encryption combinations

  4. Easy to Use

    Visual parameter configuration with one-click random key generation; no software install needed — just open the page

  5. Instant Results

    Encryption/decryption returns results in real time, supporting Base64, Hex, Latin1 and UTF-8 output encodings with one-click copy or download

  6. Cross-Platform

    Runs in any browser — Windows, macOS, Linux or mobile — so you can perform DES encryption/decryption anytime, anywhere

Cipher Modes

Different cipher modes determine how data blocks relate to each other, affecting security and applicable scenarios:

Mode Full Name IV Required Description
ECBElectronic CodebookNoEach block encrypted independently; identical plaintext produces identical ciphertext — not recommended for long text
CBCCipher Block ChainingYesEach block depends on the previous ciphertext block; high security, the most commonly used mode
CFBCipher FeedbackYesTurns a block cipher into a stream cipher; suitable for real-time encryption
OFBOutput FeedbackYesTurns a block cipher into a stream cipher; errors do not propagate
CTRCounter ModeYesTurns a block cipher into a stream cipher; supports parallel processing with good performance

Padding Schemes

When the plaintext length is not a multiple of the block size (8 bytes), padding is needed for alignment:

  • PKCS#5 / PKCS#7 - Most common; pads with the number of missing bytes (e.g. 3 missing bytes → 0x03 0x03 0x03)
  • ISO 9797-1 - First byte is 0x80, the rest are 0x00
  • ANSI X.923 - Last byte marks the padding length, the rest are 0x00
  • ISO 10126 - Last byte marks the padding length, the rest are random bytes
  • Zero Padding - Pads with 0x00 to block size; if the plaintext is already aligned, no padding is added
  • No Padding - No padding; plaintext length must be an exact multiple of the block size (8 bytes)

Key Size

The DES key size determines the encryption strength and algorithm variant:

  • DES (64-bit) - Standard DES, 8-byte key (56 effective bits), suitable for general use
  • 2DES (128-bit) - Double DES, 16-byte key, more secure than standard DES
  • 3DES (192-bit) - Triple DES (3DES), 24-byte key, highest security, widely compatible

FAQ

What is an IV (Initialization Vector)?

An IV (Initialization Vector) is a random starting value used in encryption to ensure the same plaintext produces different ciphertext across multiple encryptions. ECB mode does not need an IV; all other modes (CBC, CFB, OFB, CTR) require one. The IV must be exactly 8 bytes.

Do encryption and decryption parameters need to match exactly?

Yes. When decrypting, you must use the exact same key, cipher mode, padding scheme, and output encoding that were used for encryption; otherwise, decryption will fail or produce garbage output.

Which cipher mode is the most secure?

CBC mode is generally recommended — it is the most widely used mode with good security and broad compatibility. ECB mode is not recommended for sensitive data, as identical plaintext blocks produce identical ciphertext blocks, risking pattern leakage.

What is the difference between DES, 2DES, and 3DES?

DES (64-bit) uses a 56-bit effective key, the original standard; 2DES (128-bit) applies DES twice for enhanced security; 3DES (192-bit) applies DES three times for the highest security and is the most widely used DES variant. 3DES is recommended.

Why is the decryption result empty?

Possible causes: ① the key is incorrect; ② the cipher mode or padding scheme does not match what was used for encryption; ③ the output encoding is wrong (e.g. if encrypted with Base64 output, select Base64 for decryption too); ④ the input is not valid encrypted data.

Is my data uploaded to a server?

No. All encryption/decryption operations run entirely in your browser. Your keys and data never leave your device.

Are Chinese and other non-ASCII characters supported?

Yes. The tool uses UTF-8 encoding to process text and can correctly encrypt and decrypt Chinese, Japanese, Korean, and any other Unicode characters.

Is DES still secure today?

Standard DES (56-bit) was proven breakable by brute force in 1999 and is no longer suitable for protecting high-value data; we recommend 3DES or upgrading to AES. This tool keeps DES mainly for legacy compatibility — do not use it for important data.

Can I process multiple files in batch?

This tool focuses on real-time text encryption/decryption. For batch processing, combine several snippets in the input box and handle them in turn, or watch for a future batch version. The free daily quota covers everyday light use.

Which key size should I choose?

For legacy compatibility follow the other party's requirement; for new projects use 3DES (192-bit) for stronger security. Standard DES is only suggested for non-sensitive scenarios.

Why are the encryption results different each time?

When using a random IV mode (e.g. CBC), identical plaintext yielding different ciphertext each time is normal — as long as decryption uses the same IV it restores correctly. With ECB mode the result is fixed.

Can I decrypt if I forgot the key?

No. Symmetric encryption's security depends on the key; without the correct key the plaintext cannot be recovered. Keep your key safe. The tool stores no keys or data on any server.

Content last updated:2026-07-15

Related Tools

AES Encryption

AES Encryption

Online AES encryption and decryption tool, supporting AES-128/192/256, covering all encryption modes and padding methods, secure, efficient, and easy to operate.

3DES Encryption

3DES Encryption

Online 3DES encryption/decryption tool, supporting all encryption modes and padding methods, fully processed locally in the browser to ensure data security.

RC4 Encryption

RC4 Encryption

Online RC4 stream cipher encryption/decryption tool, supports multiple key lengths, one-click encryption and decryption, all operations are completed locally in the browser to ensure data security.

Rabbit Encryption

Rabbit Encryption

Online Rabbit stream cipher encryption/decryption tool, using a high-speed symmetric encryption algorithm, supporting multiple key lengths. All operations are performed locally in the browser to ensure data security.

RC2 Encryption

RC2 Encryption

Online RC2 encryption and decryption tool, supporting ECB/CBC modes, variable key length and effective key bits, all processed locally in the browser to ensure data security.

IDEA Encryption

IDEA Encryption

Online IDEA International Data Encryption Algorithm Tool, supporting multiple encryption modes including ECB/CBC/CFB/OFB/CTR. All operations are performed locally in the browser to ensure data security.

Blowfish Encryption

Blowfish Encryption

Online Blowfish encryption/decryption tool supporting 128/192/256/448-bit variable keys, ECB/CBC/CFB/OFB modes, and multiple padding methods. All operations are performed locally in the browser to ensure data security.

CAST Encryption

CAST Encryption

CAST-128 (CAST5) online encryption and decryption tool, supporting multiple encryption modes such as ECB/CBC/CFB/OFB, flexible padding methods, and output encoding. All operations are performed locally in the browser, ensuring security and efficiency.

SM4 National Encryption

SM4 National Encryption

Online SM4 National Symmetric Encryption and Decryption Tool, supporting five working modes: ECB/CBC/CFB/OFB/CTR, and multiple padding methods. All operations are performed locally in the browser to ensure data security.

RSA Encryption and Decryption

RSA Encryption and Decryption

Online RSA asymmetric encryption and decryption tool, supporting key pair generation, public key encryption and private key decryption, private key signing and public key verification. All operations are performed locally in the browser to ensure data security.

MD5 Encryption

MD5 Encryption

Online MD5 hash encryption tool, supporting 16-bit/32-bit output, case switching, and file MD5 verification. All operations are completed locally in the browser, ensuring security and efficiency.

MD2 Encryption

MD2 Encryption

MD2 Encryption Tool: Generate 32-bit MD2 hash values online, supporting uppercase/lowercase output and file verification.

SHA-1 Encryption

SHA-1 Encryption

Online SHA-1 hash calculation tool for efficient text encryption and file integrity verification.

SHA-256 Encryption

SHA-256 Encryption

Online SHA-256 hash calculation tool for quick text encryption and file integrity verification.

SHA-384 Encryption

SHA-384 Encryption

Online SHA-384 hash calculation tool for fast text encryption and file integrity verification.

SHA-512 Encryption

SHA-512 Encryption

Online SHA-512 hash calculation tool, supporting text encryption and file integrity verification, quickly generating secure hash values.

SM3 National Encryption

SM3 National Encryption

Online SM3 National Hash Encryption Tool, supports text hash calculation and file verification, outputs a 256-bit hash value, compliant with GM/T 0004-2012 national standard.

Base64 Encode/Decode

Base64 Encode/Decode

Online Base64 encode/decode tool, supporting text Base64 encoding and decoding, all done locally in the browser, safe and efficient.

URL Encode/Decode

URL Encode/Decode

Online URL encoding and decoding tool, supports intelligent encoding and decoding of URL parameters, automatically identifies URL structure, processes only the parameter part, completes entirely in the browser locally, safe and efficient.

UTF-8 Encode/Decode

UTF-8 Encode/Decode

Online UTF-8 encoding/decoding tool, supporting conversion between text and UTF-8 hexadecimal bytes. All processing is done locally in the browser, ensuring data security.

General Membership

Enjoy membership benefits

Exclusive Benefits

  • Unlimited use of 290+ web tools
  • Cross-platform benefits
  • New tools included
  • Free updates

Basic Benefits

  • Larger file size
  • More files
  • Full features on web
  • Full features on desktop

Monthly Member Plan

¥ 8.9
Original: ¥19.9
Valid for 30 days

Quarterly Member Plan

¥ 19.9
Original: ¥59.9
As low as 6.6 yuan/month
Hot

Yearly Member Plan

¥ 69.9
Original: ¥229.9
As low as 5.8 yuan/month
Pay: ¥ 9

Please scan with WeChat to pay

Payment indicates your agreement to the relevant terms

*No 7-day unconditional refund