Text to Base64 Converter – Convert Text Online (Free Tool)
Free online Text to Base64 Converter tool to convert plain text to Base64 encoding. Encode strings for safe transmission in text-based protocols. All conversion happens locally.
Example Output
UTF-8 bytes (ASCII + 3-byte CJK) encoded into 8 Base64 characters.
SGVsbG8g5L2g5aW9
What is Text to Base64 Converter?
Text to Base64 encodes plain text as a Base64 string using UTF-8 byte representation. Useful for safely embedding text containing special characters or Unicode in URLs, JSON payloads, HTML data attributes, or anywhere only ASCII is welcome.
Why use this tool?
- Works offline after the first page load
- Lightweight page weight that loads quickly even on slow connections
- Works on desktop, tablet, and mobile in any modern browser
- Handles UTF-8 BOM, mixed delimiters, and other edge cases that break simpler converters
- Round-trips cleanly — convert there and back without losing precision or fidelity
How to use
- Paste any plain text — UTF-8 (CJK, emoji, diacritics) is fully supported
- Click Encode — the Base64 result appears below
- Copy the output to embed in URL params, JSON strings, or HTML data attributes
- For binary files, use a dedicated file encoder instead
Examples
Embed Unicode in a URL
Base64 the text first so percent-encoding doesn't double-escape the characters — common pattern for stateful share links.
Inline a small text payload in HTML
data-config="eyJrZXkiOiJ2YWx1ZSJ9" is HTML-safe and roundtrips back to JSON server-side.
Common use cases
- Safe transport of Unicode text through ASCII-only channels
- Encoding short payloads for URL parameters or HTML data-* attributes
- Email subjects/bodies that mix scripts (Latin + CJK)
- Quick obfuscation for non-sensitive demo strings (not security!)
Troubleshooting
- Output is longer than expected.
- Base64 has a 4:3 size ratio — every 3 source bytes become 4 output characters. A 100-byte input produces about 134 characters.
Frequently Asked Questions
Base64 is a binary-to-text encoding scheme that converts binary data into ASCII characters using 64 different characters (A-Z, a-z, 0-9, +, /).
Try these related tools
Explore more Converters
Discover other free, privacy-first tools in Converters.