What this tool does
Encodes plain text or binary strings to Base64 and decodes Base64 back to readable text. Supports standard and URL-safe Base64 variants.
Data and text tool
Encode text or data to Base64, or decode Base64 strings back to plain text. Runs entirely in your browser — nothing is sent to a server.
Complete guide
Developer tools guide for base64 encode/decode users.
Base64 is an encoding scheme that converts binary data into a string of ASCII characters. It's used extensively in web development: embedding images in CSS, encoding email attachments, passing binary data in JSON APIs, and storing small assets inline in HTML.
This tool handles both directions: paste plain text or a data URI and encode it, or paste a Base64 string and decode it back. URL-safe Base64 (which replaces + with - and / with _) is also supported via the toggle.
Encodes plain text or binary strings to Base64 and decodes Base64 back to readable text. Supports standard and URL-safe Base64 variants.
Paste your input into the text area. Click Encode or Decode. Copy the result. Toggle URL-safe mode for use in URLs or filenames.
Base64 increases data size by ~33%. Don't use it to 'encrypt' data — it's an encoding, not encryption, and is trivially reversible by anyone.
Answers
No. Base64 is an encoding scheme — anyone can decode it without a key. Never use it for passwords or sensitive data.
Base64 encodes in 3-byte chunks. When input length isn't divisible by 3, = padding is added to complete the final chunk.
Standard Base64 uses + and / which are special characters in URLs. URL-safe Base64 replaces them with - and _ so the string can be used safely in a URL.
Yes — use the Image to Base64 tool for that. It accepts image files and outputs a ready-to-use data URI.