image Image
Convert Image Image to Base64 Converter
descriptionText
Compare textText to Hex Text to Base64 Word CounterCase ConverterVietnamese Accent Remover & Slug GeneratorRegex Tester
Json
Json to Excel/Csv JSON ⇄ YAML ConverterJSON to TypeScript, C# & Go
table_chartExcel
Excel/Csv to Json Excel/Csv to Sql Excel/Csv to Html
scheduleTime
Convert datetime Timezone Info
Url
Encode and Decode URLs Shorten URL
smart_displayVideo
Download Youtube
Sql
Statistics Parser Statistics Compare
SEO
Create Sitemap
listFormatter
Json FormatterXML FormatterCSS FormatterHtml FormatterJs FormatterSql FormatterException Formatter
listOther
Convert TokenConvert HashColor PickerGenerate PasswordQR Code GeneratorQR Code ScannerVietQR Bank Transfer QR GeneratorUUID / ULID / NanoID GeneratorNumber Base Converter
searchSearch
Search tools
codeTracer
C# Tracer Formatter
help_outlineAbout
About UsPrivacy PolicyTerms of Service
THUTOOL
other tool Convert Hash keyboard_double_arrow_right XML Formatter keyboard_double_arrow_right JSON ⇄ YAML Converter keyboard_double_arrow_right

Image to Base64 Converter

🔒 Processed 100% in your browser – your data never leaves your device

Image → Base64

add_photo_alternate
You can drag and drop Image file in here
Max 10 MB. PNG, JPG, GIF, WebP, BMP, SVG, ICO
Choose or drop an image to see the Base64 output

Base64 → Image

The decoded image will appear here

How to convert an image to Base64 (and back)

This tool encodes images as Base64 text so you can embed them directly in HTML, CSS, JSON, emails or Markdown, and decodes Base64 strings back into image files.

Image → Base64

  1. Click Choose File or drag and drop an image (PNG, JPG, GIF, WebP, BMP, SVG or ICO, up to 10 MB).
  2. Check the preview, MIME type, file size and dimensions.
  3. Copy the format you need: raw Base64, a data URI, a CSS background-image rule, an HTML tag or Markdown.

Base64 → Image

  1. Paste a Base64 string or a full data:image/...;base64, URI.
  2. Click Convert. The image type is detected automatically from the file signature.
  3. Preview the image and click Download to save it.

FAQ

Is my image uploaded? No. Everything runs in your browser and your files never leave your device.

Why is the Base64 bigger than the file? Base64 adds about 33% overhead, so it is best for small images such as icons and logos.

Is SVG preview safe? Yes. SVG is only displayed as an image, so any scripts inside it are not executed.

Related tools

  • Convert ImageConvert images between PNG, JPG, GIF, BMP, TIFF, TGA and PBM online for free, with optional resizing. Fast, simple and no software install.
  • VietQR Bank Transfer QR GeneratorCreate a VietQR / NAPAS 247 bank transfer QR code for any Vietnamese bank with amount and message. Free, works offline in your browser.
  • Case ConverterFree case converter: UPPER, lower, Title, Sentence, camelCase, PascalCase, snake_case, kebab-case and more, all at once. Runs in your browser.
  • Json to Excel/CsvConvert JSON to Excel (XLSX) or CSV online for free. Paste or upload JSON and download a ready-to-use spreadsheet in seconds.
  • Excel/Csv to JsonConvert Excel (XLS, XLSX) or CSV files to JSON instantly. Free online converter, your file is processed in the browser and never uploaded.
  • Convert datetimeConvert Unix timestamps (seconds or milliseconds) to readable dates and dates back to timestamps, with ISO 8601 and RFC 2822 output.
@Made by THUTOOL