Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 to plain text
About Base64 Encoder / Decoder
Base64 is an encoding scheme that converts binary data (or any text) into a string of ASCII characters using only 64 safe characters (A-Z, a-z, 0-9, +, /). It is used extensively in web development, email systems, API authentication, and data transfer to safely transmit binary data through channels that only support text. PDFSpot's Base64 tool encodes text or data to Base64 and decodes Base64 strings back to their original form. This is a daily-use tool for developers working with APIs, HTTP requests, data URIs, Basic Authentication headers, JWT tokens, and embedded images in HTML or CSS. Common uses: encoding API credentials for Basic Authentication HTTP headers (username:password encoded as Base64); encoding image files as data URIs for embedding directly in HTML or CSS without separate HTTP requests; transmitting binary file contents in JSON API payloads (since JSON can only contain text, binary data must be Base64-encoded); decoding Base64-encoded email attachments; and understanding JWT (JSON Web Token) payloads — the middle section of a JWT is Base64-encoded JSON. Base64 is not encryption. It is a reversible encoding — anyone with the encoded string can decode it. Do not use Base64 as a security measure for sensitive data. Use proper encryption for security. Base64 encoding increases data size by approximately 33% — every 3 bytes of original data become 4 Base64 characters. All encoding and decoding happens in your browser — no data is sent to any server.
How to use Base64 Encoder / Decoder
To encode: paste your plain
To encode: paste your plain text or data into the input area and click 'Encode'. The Base64-encoded output appears immediately.
To decode: paste a Base64-encoded
To decode: paste a Base64-encoded string into the input area and click 'Decode'. The original text is revealed.
Use 'Copy' to copy
Use 'Copy' to copy the result to your clipboard.
For file encoding
For file encoding, use the file upload option to convert a file to its Base64 representation.