The Base64 and HTML Entity Encode / Decode tool handles four common text conversions in one place. It supports standard Base64, URL-safe Base64, HTML entity encoding and HTML entity decoding.
Supported modes
- B64 Encode converts UTF-8 text into standard Base64.
- B64 Decode restores Base64 text to readable content.
- HTML Encode converts characters such as ampersand, less-than, greater-than, quotes and apostrophes into HTML entities.
- HTML Decode turns HTML entities back into their original characters.
URL-safe Base64
Standard Base64 uses plus, slash and equals padding characters. Those characters can cause problems in URLs or filenames. The URL-safe option replaces plus with a hyphen, slash with an underscore and removes trailing padding. The same option is used for decoding, so encoded and decoded values stay compatible.
UTF-8 support
Text is converted through UTF-8 bytes before Base64 encoding, which means Chinese characters, emoji and other non-ASCII text are handled correctly. The decode path converts the bytes back with a UTF-8 decoder.
Privacy
All work is done locally with browser APIs. Your text is never uploaded.
Open the tool: Base64 and HTML Entity Tool.