Convert text or hexadecimal bytes to Base64
Paste your input and choose its byte encoding. UTF-8 is the default for ordinary text, including accented letters and emoji. UTF-16LE represents the same text with different bytes, so it usually produces a different result. HEX treats pairs of hexadecimal digits as bytes rather than encoding the digits themselves.
With UTF-8, Hello becomes SGVsbG8=. With HEX selected, 48656c6c6f produces that same Base64 result. Use complete pairs of hex digits because this converter does not report every malformed hex input.
Choose standard Base64 or Base64URL
The output here uses standard Base64. It can contain +, /, and trailing = padding. If a protocol expects the URL-safe alphabet without padding, use the Base64URL encoder instead. The alphabets are defined in RFC 4648.
Base64 is reversible encoding and does not protect a password or secret. Use the Base64 decoder to check the result. For an entire binary file, use the Base64 file tool.
Common questions
- Is Base64 encryption?
- No. Base64 represents bytes as text, and anyone can decode it without a key. It does not provide confidentiality.
- Why does the same text have different Base64 results?
- Base64 encodes bytes. UTF-8 and UTF-16LE produce different byte sequences for the same text, so select the encoding expected by the receiving system.