TEXT / IMAGE CONVERTER
Base64 Converter
Encode text or images as Base64, or decode Base64 strings back into text. Your input is processed in this browser.
Total uses: …
Convert Text
Encode UTF-8 text as Base64, or paste a Base64 string to restore the original text.
URL-safe Base64 replaces “+” and “/” with “-” and “_”, and removes trailing “=” padding. The decoder recognizes both standard and URL-safe Base64 automatically.
Up to 250,000 characters per conversion. Text with line breaks is supported.
Convert an Image to Base64
Convert an image to a Base64 string or a Data URI you can paste into HTML or CSS.
Supports PNG, JPEG, WebP, GIF, SVG, and other image formats. Maximum file size: 5 MB.
A Data URI embeds the image data in a URL that can be used in HTML or CSS. Large images increase page size, so Data URIs are best for small images.
How to Use This Tool
Convert text
Choose a direction, paste text or a Base64 string into the input, then select Convert. UTF-8 text, including non-English characters and line breaks, is supported. URL-safe Base64 is a variant used in URLs and some token formats.
Convert an image to a Data URI
Choose an image, select Data URI or Base64 string, then select Convert image. A Data URI can bundle an image into an HTML or CSS file.
Text and image data are converted in your browser and are not sent to a server. Base64 is an encoding format, not encryption, so it cannot hide confidential information. Base64 output is larger than the original data.