Data · Encoding

Base64, Base64URL, Hex & URL-Safe Encoder/Decoder

Convert UTF-8 text or binary files between Base64, Base64URL, Hex and URI percent-encoding. Everything runs locally in your browser — nothing is uploaded.

Optional: encode any file (images, PDFs, zips) straight from disk.

Output

Every representation below is derived from the same bytes. Copy any of them.

Is my text or file uploaded to a server?

No. Encoding and decoding use only browser APIs (TextEncoder, btoa/atob, File.arrayBuffer). The page makes no network requests with your data, so it works offline and is safe for secrets, keys and internal payloads.

What is the difference between Base64 and Base64URL?

Base64URL is the URL- and filename-safe alphabet: + becomes -, / becomes _, and trailing = padding is dropped. The decoder here accepts either alphabet, padded or unpadded, so JWT segments and standard Base64 both decode correctly.