Devbelt

Base64 Encode / Decode

Encode or decode text and files — instantly

TEXT
BASE64
Output appears here as you type.
Type text (or pick a file) to encode.

Your data never leaves your device — text and files are encoded entirely in your browser, never uploaded.

About

Base64 is how binary data slips through text-only channels — data URIs, JWTs, email attachments, JSON payloads. Devbelt encodes and decodes both text and files in a single click, handles Unicode and emoji without mangling them, and hands you the URL-safe alphabet the moment you need it. Nothing is uploaded; every byte is converted right in your browser.

Frequently asked questions

What is Base64 encoding used for?
Base64 represents binary data as plain ASCII text, so it can travel safely through systems that only handle text — for example embedding images in CSS or HTML as data URIs, encoding data in URLs and JWTs, or attaching files in email and JSON APIs.
How do I decode a Base64 string?
Switch to Decode, then paste your Base64 into the input box. Devbelt decodes it instantly and accepts both the standard and URL-safe alphabets, with or without padding.
Does this handle Unicode and emoji correctly?
Yes. Devbelt encodes and decodes via UTF-8, so accented characters, non-Latin scripts and emoji round-trip correctly — unlike naive tools that mangle anything outside plain ASCII.
What is URL-safe Base64?
Standard Base64 uses + and / and = padding, which have special meaning in URLs. URL-safe Base64 replaces + with -, / with _, and drops the padding, so the result can be dropped straight into a URL or a JWT.
Is my text or file uploaded anywhere?
No. All encoding and decoding, including files you choose, happens entirely in your browser. Nothing is uploaded or stored on a server.

Related tools