Base64 Encode & Decode
Encode text to Base64 or decode Base64 back to text. Supports UTF-8.
π 100% private β runs entirely in your browserEncode text to Base64 or decode Base64 back to text. Supports UTF-8.
π 100% private β runs entirely in your browserBase64 is a binary-to-text encoding scheme that represents binary data as an ASCII string. It is commonly used in data URLs, email attachments (MIME), JSON Web Tokens (JWT), and embedding binary data in text-based formats like HTML, CSS, or XML.
Encode or decode Base64 in three quick steps.
Enter plain text to encode or a Base64 string to decode. The tool auto-detects the direction, or you can choose explicitly.
Hit Encode to convert text to Base64, or Decode to convert Base64 back to readable text. Full UTF-8 support is built in.
Copy the result with one click, or use Swap to move the output back to the input field for round-trip testing.
Encode username:password credentials to Base64 for HTTP Basic Authentication headers. Paste the pair, click Encode, and drop the result into your Authorization: Basic header.
Extract the readable content from data:text/plain;base64,... strings found in HTML, CSS, or email templates. Paste the Base64 portion and decode instantly.
JWT tokens use Base64url encoding for the header and payload segments. Decode individual segments here to inspect claims without a dedicated JWT tool.
Encode small files (icons, certificates, config snippets) to Base64 for embedding directly in JSON payloads, XML documents, or environment variables.
Paste your text or Base64 string into the input field. Click Encode to convert text to Base64, or Decode to convert Base64 back to plain text. The result appears instantly β no server processing required.
Base64 is a binary-to-text encoding scheme that represents binary data using 64 ASCII characters (A-Z, a-z, 0-9, +, /). It's commonly used to embed images in HTML/CSS, send binary data in JSON or XML, encode email attachments, and pass data in URLs.
Yes. All encoding and decoding happens entirely in your browser using client-side JavaScript. Your data is never sent to any server, making it safe for API keys, tokens, credentials, and other sensitive content.
Yes. The encoder handles full UTF-8 text including accented characters, emoji, Chinese, Japanese, Arabic, and other non-ASCII text. The tool properly encodes multi-byte characters so they decode correctly.
Base64 converts binary data to a string of 64 ASCII characters and is used for embedding data or transmitting binary content as text. URL encoding (percent-encoding) replaces unsafe URL characters with %XX sequences and is used specifically for making strings safe in URLs and query parameters.
Yes, completely free with no registration or usage limits. Encode and decode as many times as you need β all processing happens locally in your browser.