Productive Toolbox

Text Encrypt/Decrypt

Encrypt or decrypt text instantly using ROT13, Base64, and more with live preview and history

🔐

Text Encrypt & Decrypt Tool

Transform text using ROT13, Base64, and more. All processing happens locally in your browser. Perfect for simple text obfuscation and encoding.

Encryption Mode

Input Text

0 charactersCtrl+Enter to transform

Output Text

0 characters

Export Options

Transformation History (Last 10)

Keyboard Shortcuts

Ctrl+Enter Transform text
Ctrl+C Copy output (when focused)

About Text Encrypt & Decrypt Tool

The Text Encrypt & Decrypt Tool is a versatile, browser-based utility for transforming text using various encoding and encryption methods. Whether you need simple text obfuscation with ROT13, data encoding with Base64, or binary representation, this tool handles it all instantly in your browser. Perfect for developers, students, and anyone needing quick text transformations.

Key Features

  • Multiple Modes: ROT13, Base64, Base32, Binary, and URL-safe variants
  • Live Dual-Panel: See input and output side-by-side with instant updates
  • Large Text Support: Efficiently handles 100,000+ characters
  • Debounced Processing: Smooth performance even with massive text blocks
  • Transformation History: Saves last 10 transformations locally
  • Swap Function: Quickly reverse input and output
  • Copy to Clipboard: One-click copying with visual feedback
  • Export Options: Download as TXT or JSON files
  • Keyboard Shortcuts: Ctrl+Enter to transform, Ctrl+C to copy
  • 100% Client-Side: All processing happens in your browser

How to Use

  1. Select your desired encryption/encoding mode
  2. Enter or paste text in the input panel
  3. See the transformed result instantly in the output panel
  4. Click "Copy" to copy the output to clipboard
  5. Use "Swap" to reverse input and output for decryption
  6. Export results as TXT or save history as JSON
  7. Access previous transformations from history

Encryption Modes Explained

ROT13

A simple letter substitution cipher that shifts each letter by 13 positions in the alphabet. It's symmetric, meaning applying ROT13 twice returns the original text. Commonly used for spoiler protection and simple text obfuscation.

Example: "Hello" → "Uryyb"

Base64 Encode/Decode

Converts text to Base64 format, which represents binary data in ASCII string format using 64 characters (A-Z, a-z, 0-9, +, /). Widely used for encoding data in emails, URLs, and data URIs.

Example: "Hello" → "SGVsbG8="

Base64 URL-Safe

A variant of Base64 that uses URL-safe characters (- and _ instead of + and /). Perfect for encoding data in URLs and filenames without special character issues.

Example: "Hello" → "SGVsbG8" (no padding)

Base32

Uses only uppercase letters A-Z and digits 2-7, making it case-insensitive and easier to communicate verbally. Commonly used in TOTP (authenticator apps) and some file systems.

Example: "Hello" → "JBSWY3DP"

Binary

Converts text to binary representation (0s and 1s). Each character is represented by its 8-bit binary code. Useful for understanding how computers store text.

Example: "Hi" → "01001000 01101001"

Use Cases

  • Spoiler Protection: Use ROT13 to hide spoilers in forums and discussions
  • Data Encoding: Encode binary data for transmission in text-only systems
  • Email Attachments: Base64 encoding for inline images and files
  • URL Parameters: URL-safe Base64 for encoding data in URLs
  • Configuration Files: Encode sensitive data in config files
  • API Tokens: Base64 encoding for authentication tokens
  • Learning: Understand different encoding schemes and their applications
  • Data URIs: Create data URIs for embedding images in CSS/HTML

Performance Optimization

This tool is optimized to handle large text blocks efficiently:

  • Debounced Input: For text over 1,000 characters, transformations are debounced by 300ms to prevent lag while typing
  • Instant Processing: Smaller text blocks are transformed instantly
  • Efficient Algorithms: Uses optimized string operations and typed arrays
  • Minimal DOM Updates: Only updates when necessary to maintain smooth UI
  • 100k+ Character Support: Can handle massive text blocks without freezing

Advanced Features

Transformation History

Automatically saves your last 10 transformations in browser localStorage. Click any history item to reload it instantly. Perfect for comparing different encoding methods or retrieving previous work.

Swap Function

Quickly reverse input and output with one click. Useful for decryption workflows where you want to decode the output and encode it again with a different method.

Export Options

Export your transformed text as a .txt file or save your entire transformation history as a .json file for record keeping or sharing with team members.

Keyboard Shortcuts

Speed up your workflow with keyboard shortcuts: Ctrl+Enter to transform text, and Ctrl+C to copy output when the output panel is focused.

Security & Privacy

Your privacy is important:

  • 100% Client-Side: All transformations happen in your browser
  • No Server Communication: Nothing is sent to any server
  • No Tracking: We don't track what you encrypt or decrypt
  • Local Storage Only: History is stored only in your browser
  • No Analytics: No third-party scripts or tracking

Important Note: ROT13 and Base64 are NOT secure encryption methods. They are encoding schemes that provide obfuscation, not security. For actual encryption, use proper cryptographic tools like AES or RSA.

ROT13 vs Base64: When to Use Each

Use ROT13 When:

  • You need simple, reversible text obfuscation
  • Hiding spoilers in forums or discussions
  • Creating puzzles or games
  • You want human-readable output (still letters)

Use Base64 When:

  • Encoding binary data for text-only systems
  • Creating data URIs for images
  • Encoding email attachments
  • Storing binary data in JSON or XML
  • Working with APIs that require Base64

Common Errors and Solutions

Error: Invalid Base64 string

The input contains characters not valid in Base64. Make sure you're decoding actual Base64-encoded text.

Error: Invalid characters for Base64 encoding

The input contains special Unicode characters that can't be directly encoded. The tool handles this automatically using UTF-8 encoding.

Error: Invalid Base32 string

Base32 only accepts uppercase letters A-Z and digits 2-7. Check your input for invalid characters.

Technical Details

ROT13 Implementation

Uses character code manipulation to shift letters by 13 positions. Non-alphabetic characters remain unchanged. Case is preserved.

Base64 Implementation

Uses browser's native btoa() and atob() functions with UTF-8 encoding support via encodeURIComponent/decodeURIComponent.

Base32 Implementation

Follows RFC 4648 standard. Converts text to binary, then groups into 5-bit chunks mapped to the Base32 alphabet.

Binary Implementation

Converts each character to its 8-bit binary representation using charCodeAt() and toString(2).

Browser Compatibility

This tool works in all modern browsers including Chrome, Firefox, Safari, Edge, and Opera. The btoa() and atob() functions for Base64 are supported in all browsers released after 2012. All other encoding methods use standard JavaScript string operations with universal support.