Base64 Encoder & Decoder – Free Online Base64 Encode/Decode Tool
Encode any text to Base64 or decode a Base64 string back to plain text — instantly in your browser. Fully supports UTF-8 characters (including accents, emojis, and non-Latin scripts). Offers standard Base64 and URL-safe Base64 (RFC 4648 §5) variants. Perfect for developers working with HTTP headers, data URIs, JSON Web Tokens, email encoding, and API integrations. No login or installation required.
Mode
Variant
Try an example
How to Use the Base64 Encoder & Decoder
What is Base64?
Base64 is an encoding scheme that converts binary data (or text) into a sequence of 64 printable ASCII characters (A–Z, a–z, 0–9, +, /). It is widely used to safely transmit data in contexts that only support text — such as email attachments, data URIs, HTTP Authorization headers, and JSON payloads.
Modes:
- Text → Base64 (Encode): Converts any plain text (including Unicode / UTF-8) into a Base64 string. Example:
Hello→SGVsbG8= - Base64 → Text (Decode): Decodes a Base64 string back into its original text. Paste any Base64 value and get the original content instantly.
URL-safe mode (RFC 4648 §5):
When enabled, the standard characters + and / are replaced with - and _ respectively, and padding (=) is removed. Use this format when embedding Base64 in URLs, query parameters, or filenames where + and / would be misinterpreted.
How to use:
- Select Text → Base64 to encode, or Base64 → Text to decode.
- Optionally enable URL-safe mode if you need a URL-compatible output.
- Paste or type your input — the result appears instantly.
- Click Copy to copy the output to your clipboard.
