ToolNest
HomeToolsFavoritesAbout
ToolNest

Practical tools for work and studyβ€”no signup. Policies and operator info are published on-site.

Navigation

  • Tools
  • About ToolNest
  • Guides
  • Favorites
  • Popular Tools

Legal

  • Terms of Service
  • Privacy Policy
  • Licenses
  • Contact
Β© 2026 ToolNest
  1. Home
  2. Tools
  3. Image to Base64

Image to Base64

Convert image to base64 string.

Click or drag and drop

PNG, JPG, WebP, etc. (max 10 MB)

Result
β€”

Add to favorites for quick access from the home page

Related tools

Tools often used together with this one

Base64 Encode/Decode

Encode and decode Base64 strings. Supports Unicode.

⚑ Browser OnlyπŸ”’ No UploadπŸš€ Instant Processing

Image Compressor

Upload image and compress it. Output smaller file.

⚑ Browser OnlyπŸš€ Instant Processing

Aspect Ratio Crop

Crop images to a fixed aspect ratio (16:9, 4:3, 1:1, etc.) with center crop.

⚑ Browser OnlyπŸš€ Instant Processing

Image Watermark

Add text watermark to images. Position, opacity, font size, and color options.

⚑ Browser OnlyπŸš€ Instant Processing
β€ΊHow it works
  1. 1Upload an image (PNG, JPG, WebP, etc.).
  2. 2The tool reads the file and converts it to a Base64-encoded data URL.
  3. 3Output format: data:image/png;base64,iVBORw0KGgo...
  4. 4Copy the string to embed in HTML img src or CSS.

Example

Input: [upload image]
Output: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==