Base64 Encoder / Decoder
Encode text or files to Base64 and decode Base64 strings.
Supports Unicode text. Encoding/decoding happens entirely in your browser β no data is sent to any server.
Base64 is an encoding scheme that converts binary data into a sequence of printable ASCII characters. It is widely used to embed images in HTML, send binary files over email, store credentials in HTTP headers, and transmit data through systems that only support text.
Paste any text or binary data into the encoder to receive the Base64 output instantly, or paste a Base64 string into the decoder to retrieve the original content. The tool handles both standard Base64 and the URL-safe variant (which uses - and _ instead of + and /).
All encoding and decoding happens locally in your browser, so sensitive data such as API keys or tokens is never exposed to any server. This makes the tool safe for everyday security and development workflows.
Frequently Asked Questions
Code Implementation
import base64
# Encode
text = "Hello, World!"
encoded = base64.b64encode(text.encode()).decode()
print(encoded) # SGVsbG8sIFdvcmxkIQ==
# Decode
decoded = base64.b64decode(encoded).decode()
print(decoded) # Hello, World!
# URL-safe variant
url_safe = base64.urlsafe_b64encode(text.encode()).decode()Comments & Feedback
Comments are powered by Giscus. Sign in with GitHub to leave a comment.