Image to Base64 Converter
Encode an image as a Base64 data URL for CSS, HTML or Markdown, or decode Base64 back into a downloadable image.
Open toolEncode text or files to Base64 (standard or URL-safe), or decode Base64 back to text or a downloadable file.
Encode converts text to Base64 using UTF-8, so accents, Indian scripts and emoji round-trip correctly (unlike the browser’s raw btoa), or encodes any file’s bytes. Options include the URL-safe alphabet without padding (Base64URL, used in JWTs) and 76-character line wrapping for email/MIME.
Decode accepts standard or URL-safe Base64, with or without padding, line breaks or a data: prefix. Text is shown as UTF-8; binary data is detected and offered as a download.
Everything runs in your browser. Your data is never uploaded, logged or stored.
Your code or text
Text (UTF-8), Any file up to 25 MB, Base64, Base64URL, Data URLs
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Ready to download or copy
Choose Encode or Decode.
Type, paste or drop your input (text or a file).
Pick URL-safe or line wrapping when encoding, then copy or download the result.
Zero-upload architecture
Free, with no sign-up or watermark · Your files stay on your device
Launch the app and add your file. There is nothing to install and no account to create.
Type, paste or drop your input (text or a file).
Pick URL-safe or line wrapping when encoding, then copy or download the result.
Encode an image as a Base64 data URL for CSS, HTML or Markdown, or decode Base64 back into a downloadable image.
Open toolPercent-encode text for URLs, query strings or forms, or decode encoded links with a breakdown of every parameter.
Open toolDecode and inspect JSON Web Tokens: header, payload, claims and exp/iat/nbf dates, with a clear reminder that decoding is not verification.
Open toolEscape HTML special characters into entities, or decode entities like & and © back to readable text.
Open tool