B64

Base64 Encode/Decode

Encode or decode Base64 strings online.

How to use

Encoding

Paste any text or binary data in the left box, select Encode, and get the Base64 string. Use this to embed data in HTML (data URIs), HTTP headers, or any system that expects text-safe input.

Decoding

Paste a Base64 string and select Decode to recover the original text. Useful for reading Basic Auth headers (Authorization: Basic <encoded>), JWT payloads, or API credentials.

URL-safe Base64

Standard Base64 uses + and /, which are special characters in URLs. URL-safe Base64 (Base64url) replaces them with - and _. JWTs and OAuth tokens use this variant. The toggle switches between the two modes.

Base64 is encoding, not encryption. Anyone can decode it without a key. Never use it to hide sensitive data.

Use via API

Integrate this tool into your workflow with our free REST API.

View API docs →

Embed This Tool

Add this tool to your site or blog:

New Tool Every Week

Get notified when we ship new tools and Android apps. One email, no fluff.