πŸ”‘

Base64 Encoder / Decoder

Instantly encode text to Base64 or decode Base64 back to plain text. Supports URLs, JSON, and arbitrary strings.

Plain Text
⇄
Base64
πŸ“¦

What is Base64?

Base64 encodes binary data as ASCII text using 64 printable characters. Used in email attachments, data URLs, API tokens and JWT.

πŸ”—

URL-Safe Base64

Standard Base64 uses + and / which are unsafe in URLs. URL-safe Base64 replaces them with - and _.

πŸ“

Size overhead

Base64 increases data size by ~33%. Every 3 bytes of input become 4 characters of Base64 output.

πŸ’‘

Common uses

Embedding images in HTML/CSS (data:image/...), storing binary in JSON, HTTP Basic Auth, JWT tokens.