Loading…

How to use Base64 Image Encoder

Upload an image, and the tool encodes it into a Base64 data URI ready to paste into CSS or HTML.

Frequently asked questions

What is a Base64 data URI?

A self-contained URL that embeds file data directly: data:image/png;base64,iVBOR...

When should I use Base64 images?

For small icons or logos to eliminate HTTP requests. Avoid for large images as Base64 is ~33% larger than binary.

What formats are supported?

PNG, JPEG, GIF, WebP, SVG, BMP, ICO and most common web image formats.

More Encoders & Decoders

Base32 Encoder
Encode text using RFC 4648 Base32 encoding
Base32 Decoder
Decode Base32 encoded strings back to plain text
URL Encoder
Percent-encode special characters for safe URL usage
URL Decoder
Decode percent-encoded URLs back to readable text
HTML Entities Encoder
Encode special characters to HTML entity references
HTML Entities Decoder
Decode HTML entities back to their plain text form
Text to Binary
Convert text to 8-bit binary (0s and 1s) format
Binary to Text
Convert binary (0s and 1s) back to readable text
Text to Hex
Convert text to hexadecimal (base 16) encoding
Hex to Text
Decode hexadecimal values back to readable text
ASCII Code Lookup
Look up ASCII codes and convert characters to/from codes
Text to Octal
Encode text as octal (base 8) numbers

← View all Encoders & DecodersBrowse all 1,100+ tools →