Text Encoder/Decoder
Flip between Encode and Decode, pick any of nine conversion formats, and watch the output change as you type. From web-standard Base64 to classic Morse code — every transformation runs locally in your browser.
📄 Plain Text
0 characters
🔒 Encoded Text
0 characters
Encoding Types Explained
Understanding each format and when to use it
Base64
Binary-to-text encoding for images, APIs, and email attachments.
URL
Percent encoding for URLs, query strings, and form data.
HTML
Entity encoding for displaying special chars in HTML.
ROT13
Letter substitution cipher shifting by 13 positions.
Caesar
Classic cipher with customizable shift (1-25).
Binary
Convert to 8-bit binary representation.
Hex
Hexadecimal (base-16) values for colors and memory.
Morse
Dots and dashes for telegraph communication.
Unicode
Escape sequences (\\uXXXX) for programming.
How It Works
Encode or decode text in three simple steps
Pick a Direction
Tap Encode to transform plain text into the target format, or Decode to reverse an encoded string back to readable form. The Swap button flips both at once.
Choose a Format
Select one of nine tabs — Base64, URL, HTML, ROT13, Caesar, Binary, Hex, Morse, or Unicode. For Caesar, drag the shift slider to set the rotation amount.
Read & Copy
The right panel updates on every keystroke. When the output looks correct, hit Copy to place it on your clipboard and paste it wherever you need it.
Best Practices
✅ Do
- Reach for Base64 when a text-only channel needs to carry binary payloads
- Percent-encode every query-string value before appending it to a URL
- Escape angle brackets and ampersands before injecting user text into HTML
- Write \\uXXXX escapes for non-ASCII characters inside JavaScript or JSON
- Always decode the output once and compare it to the original to verify round-trip fidelity
- Treat ROT13 and Caesar as toys — entertaining, but offering zero real protection
❌ Don't
- Rely on ROT13 or Caesar to guard sensitive information — anyone can reverse them
- Mistake encoding for encryption; the two serve fundamentally different purposes
- Run URL encoding twice on the same string — double-encoding creates broken links
- Overlook that Base64 bloats payload size by roughly a third
- Convert huge documents to binary or hex — the output becomes impractically long
- Take for granted that every receiving system handles every format identically
Tips by Use Case
Which encoding to use for common scenarios
Web Development
- Percent-encode every query-string value you build
- Escape user-submitted strings before rendering in HTML
- Embed small images as Base64 data URIs to cut HTTP requests
- Use \\u escapes when a config file must remain pure ASCII
API Integration
- Wrap binary attachments in Base64 for JSON transport
- Percent-encode path segments that contain special characters
- Read the API docs — some endpoints expect specific encodings
- Catch decode errors early to avoid silent data corruption
Puzzles & Education
- Hide spoilers behind ROT13 — readers decode to reveal
- Build a Caesar-shift challenge and let friends crack it
- Translate a phrase to Morse and tap it out for fun
- Show binary to introduce how computers store letters
Data Processing
- Convert color codes to hex for CSS and design tools
- Inspect byte values with binary or hex for debugging
- Base64-wrap files before piping through text-only pipelines
- Use Unicode escapes to safely store multilingual strings
Frequently Asked Questions
Everything you need to know about text encoding
What does "encoding" actually mean in this context?
How is encoding different from encryption?
When is Base64 the right choice?
Why can't I just paste special characters into a URL?
Should I trust ROT13 or Caesar to protect anything?
Does anyone still use Morse code?
When do I need HTML entity encoding?
What are Unicode escape sequences for?
Related Tools
Time to Convert Some Text?
Jump to the tool, toggle Encode or Decode, pick a format, and watch the output build as you type. Nine formats, zero sign-up, and every conversion stays in your browser.