Image to Base64 Converter | Shining Toolbox

Convert images to Base64 data URLs. Embed images directly in HTML and CSS.

Quick Answer

Image Base64 format: data:image/png;base64,[data]. Useful for small icons and images to reduce HTTP requests, but increases file size by ~33%.

Quick Template

Use the full Base64 Encoder/Decoder

This variant is a fast preset. Open the full tool to fine-tune inputs, explore more options, and share the result.

Go to Base64 Encoder/Decoder

About Image to Base64 Converter

How to Use Base64 Converter

  1. Enter text to encode or Base64 string to decode
  2. Click ‘Encode’ or ‘Decode’ button
  3. Copy the result with one click
  4. Works entirely in your browser

Base64 Alphabet

The Base64 alphabet uses 64 characters:

  • A-Z (26 characters)
  • a-z (26 characters)
  • 0-9 (10 characters)
    • and / (2 characters)
  • = (padding character)

Example

Text: Hello World Base64: SGVsbG8gV29ybGQ=

Related Tools

Copied to clipboard!