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. We do not collect or store what you enter. Perfect for simple text obfuscation and encoding.
Encryption Mode
Input Text
Output Text
Export Options
Transformation History (Last 10)
Keyboard Shortcuts
Related tools
About Text Encrypt & Decrypt Tool
The Text Encrypt & Decrypt Tool is a versatile, online 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. 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
- 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
- Private: Your inputs are not collected or stored
How to Use
- Select your desired encryption/encoding mode
- Enter or paste text in the input panel
- See the transformed result instantly in the output panel
- Click "Copy" to copy the output to clipboard
- Use "Swap" to reverse input and output for decryption
- Export results as TXT or save history as JSON
- 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. 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:
- Private: Your inputs are not collected or stored
- No Tracking: We don't track what you encrypt or decrypt
- 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.
Frequently Asked Questions
Is this real encryption?
No. ROT13, Base64, Base32 and binary are encodings: anyone can reverse them without a key. Use them to obscure spoilers or to move text between systems, not to protect secrets. For real protection use an encryption tool such as AES with a strong password.
What is ROT13?
A letter substitution that shifts each letter 13 places in the alphabet, so A becomes N and N becomes A. Applying ROT13 twice returns the original text, which is why the same button both encodes and decodes.
What is the difference between Base64 and Base64URL?
Base64URL replaces + and / with - and _ and usually drops the = padding, so the result can be used safely in URLs and file names. JWTs use Base64URL.
Why does Base64 make text longer?
Base64 turns every 3 bytes into 4 characters, so the output is about 33% longer than the input. Base32 is longer still, about 60%.
Is my data private?
Yes. We do not collect or store what you enter. Any history the tool keeps is visible only to you.
Related Tools
AES Text Encryptor
Encrypt and decrypt text with AES-GCM using the browser's Web Crypto API.
Steganography Tool
Hide secret messages inside images using LSB steganography.
Email Obfuscator
Encode email addresses as HTML character codes to hide them from spam bots.
IP Address Masker
Practice converting IP to CIDR blocks.
URL Tracker Remover
Paste any URL to strip UTM parameters, fbclid, gclid, and other tracking tokens automatically.
Password Generator
Random, strong passwords.
Hash Generator
Generate MD5, SHA-1, SHA-256 hashes.
Username Generator
Random usernames for social media.
Password Strength Meter
Score password based on entropy and length.
Bcrypt Hash Verifier
Check whether a password matches a bcrypt hash, locally in your browser.
File Hash Generator
Generate SHA-256 fingerprints of files without uploading them.
SRI Hash Generator
Generate Subresource Integrity hashes and ready-to-use tags for CDN scripts and stylesheets.