Chuyển đổi hình ảnh sang Base64
Convert any image to a Base64-encoded string or data URI.
Drag & drop an image here, or click to select
PNG, JPG, GIF, SVG, WebP
About Image to Base64
Base64 encoding converts binary image data into ASCII text, making it possible to embed images directly in HTML, CSS, or JSON without external files. The data URI format (data:image/png;base64,...) can be used in <img> src attributes and CSS background-image properties. Note that Base64-encoded images are roughly 33% larger than the original file.
Related Tools
Base64 Encoder / Decoder
Encode or decode Base64 strings and files. Supports UTF-8 text and drag & drop files.
Base64 Image Decoder
Decode Base64 strings to images. Preview and download as PNG, JPEG, or WebP.
Image Compressor
Compress images up to 80% smaller. Drag & drop, instant download. No upload to any server.