Base64 Encoder & Decoder

Encode text or files to Base64 and decode Base64 strings — instantly in your browser. No data sent to any server.

✓ Free Forever ✓ File Support ✓ URL-Safe Mode ✓ 100% Private
Ready Input: 0 chars Output: 0 chars Ratio: —
Input
Output

What is Base64?

Base64 is a binary-to-text encoding that converts binary data into 64 printable ASCII characters. It's widely used to embed images in HTML/CSS, transmit binary data in JSON, and encode email attachments.

URL-Safe Base64

Standard Base64 uses + and / which are special characters in URLs. URL-safe mode replaces them with - and _ — ideal for tokens, JWTs, and URL parameters.

File Encoding

Use the "Encode File" button to convert any file (images, PDFs, etc.) into a Base64 string. You can then embed images directly in HTML: <img src="data:image/png;base64,...">