Base64 Encoder and Decoder
Convert text to Base64 and decode Base64 back to readable text. Supports standard Base64 and URL-safe Base64 with UTF-8 handling for emojis and non-ASCII characters.
What is Base64?
Base64 represents binary data using 64 printable ASCII characters: A–Z, a–z, 0–9, + and /. Standard Base64
follows RFC 4648; the URL-safe variant swaps +/ for -_ and drops trailing = padding.
Use Base64 when data has to travel through a text-only format such as JSON, JWTs, data URIs, email attachments, or HTTP basic auth.
How to use this Base64 encoder
Paste text into the input box to encode it to Base64. Switch to decode mode to convert a Base64 string back to readable UTF-8 text.
Choose the URL-safe variant when the result will be used in a URL, filename, token, or other
context where +, /, or = can cause problems.
Use the API
Call the same encoder server-side or from another origin. CORS is open, no auth required for the free tier.
curl "https://encode-decode.org/api/v1/base64\ ?action=encode&input=Hello%20World"