11 chars · 1 line
16 chars · 1 line
11 chars · 1 line
16 chars · 1 line
Base64 encoding guide
Encode UTF-8 text as standard Base64 or unpadded Base64URL, convert hexadecimal bytes directly to Base64, decode either Base64 variant back to readable text, or inspect decoded binary bytes as hexadecimal. The converter validates Base64 length, padding, padding bits, and hexadecimal byte input locally in your browser. This tool is free to use. No account or payment is required.
Last updated
Base64 represents binary bytes with printable ASCII characters. Anyone who receives the value can decode it, so Base64 does not protect passwords, secrets, or private data.
VetaTool encodes text as UTF-8 before converting the bytes. Encode produces standard padded Base64, while Base64URL produces the URL-safe alphabet without trailing = padding.
Standard Base64 uses + and / characters and commonly ends with = padding. Base64URL replaces those characters with - and _ so values can be placed more safely in URLs and tokens.
Base64URL mode emits the URL-safe alphabet and omits padding, matching the representation commonly used by JWT segments. Decode accepts both alphabets and can restore omitted padding while still rejecting impossible lengths and non-canonical padding bits.
Hex → Base64 reads pairs of hexadecimal digits as raw bytes before encoding them, so binary values such as file signatures, hashes, keys, or compressed data are not accidentally encoded as the visible hex characters themselves.
Decode requires decoded bytes to form valid UTF-8 text, while Decode → Hex skips UTF-8 interpretation and renders each decoded byte as two lowercase hexadecimal digits. This keeps arbitrary binary Base64 values inspectable without uploading them.
Readable text is converted to its standard padded Base64 representation.
hello worldaGVsbG8gd29ybGQ=Common questions
No. Base64 is reversible encoding and should not be used to hide secrets or protect sensitive data.
Yes. Base64URL mode encodes with the URL-safe - and _ alphabet and omits trailing padding. Decode accepts both standard and URL-safe Base64 and restores omitted padding when the encoded length is valid.
The input may contain invalid padding, non-canonical padding bits, or an impossible length. Text Decode also rejects bytes that are not valid UTF-8; use Decode → Hex when you need to inspect arbitrary binary bytes.
No. Base64 encoding and decoding happen locally in your browser.
Looking for broader references? Browse all developer guides.