Paste your text here, or drag a file…
Drag & drop a file, or paste content above
Output will appear here
About
The Base64 Encoder / Decoder converts plain text, binary data, or uploaded files to Base64-encoded ASCII strings, and decodes Base64 back to the original text. UTF-8 multibyte characters are handled correctly. Base64 is used extensively for embedding images in HTML/CSS as data URIs, encoding binary payloads in JSON APIs, and HTTP Basic Authentication (Authorization: Basic ...). The tool runs entirely in your browser — nothing is uploaded to any server. File upload, clipboard copy, and one-click download are all supported.
How to use
- 1 Type or paste text into the input to encode it to Base64.
- 2 To decode, paste a Base64 string and switch to Decode mode.
- 3 For files, drag and drop or click to browse and upload.
- 4 Copy the output to your clipboard with the copy button.
- What is Base64 encoding used for?
- Base64 encodes binary data as ASCII text so it can be safely transmitted in text-only contexts. Common uses include embedding images directly in HTML or CSS as data URIs, encoding binary payloads in JSON APIs, and encoding credentials in HTTP Basic Authentication headers (Authorization: Basic ...).
- Does Base64 encoding make data secure?
- No. Base64 is an encoding scheme, not encryption. Anyone can decode a Base64 string without a key. Do not use Base64 to protect sensitive data — use proper encryption instead. It is purely a transport format for converting binary data to printable ASCII characters.
- What is the difference between standard and URL-safe Base64?
- Standard Base64 uses + and / characters, which have special meanings in URLs and can cause issues in query strings. URL-safe Base64 replaces + with - and / with _, making the encoded string safe to use directly in URLs and filenames without percent-encoding.