DevToolBox

Base64 Encoder / Decoder

Encode or decode text, images, files and URL-safe Base64 — all in your browser.

Mode
Supports UTF-8 text, including Chinese characters and emoji.

How to Use

What is Base64? Base64 encodes binary data into ASCII text using 64 characters. It is widely used to embed images in JSON, create data URLs, sign JWTs and send binary data over text protocols.

How to use it 1. Text tab: type text, choose Encode or Decode, and click the action button. 2. Image tab: choose, drag and drop, or paste an image to get a data URL. 3. File tab: read any file as Base64, or decode Base64 back to a file. 4. URL-Safe tab: encode with - and _ without padding for URLs and JWT.

Tips - UTF-8 is fully supported, so Chinese, accents and emoji round-trip safely. - Base64 adds about 33 percent overhead compared to the original data. - Files over 5 MB trigger a size warning. - Use URL-safe Base64 when the output is placed in a URL or a JWT.

Privacy Encoding and decoding run entirely in your browser.

Base64 Encoder / Decoder — Text, Image, File & URL-Safe