Image to Base64
Convert image files to Base64 strings
Category
How to Use
- Drag image to upload area or click to select file
- Image info and preview are shown automatically
- Base64 string can be copied with one click
Examples
-
Convert PNG image
Input:
Drag logo.png (15KB)Output:
data:image/png;base64,iVBORw0KGgo...
FAQ
- What image formats are supported?
- All browser-displayable formats: PNG, JPEG, GIF, SVG, WebP, BMP, etc.
- Are there size limitations for images?
- No hard limits, but Base64 strings for large images will be very long. Recommended to keep under 1MB.
Related tools
- Image Upscaling and Restoration
A free-forever, unlimited Real-ESRGAN 4x image upscaling and restoration tool with general upscaling, photo enhancement, compression repair, line-art enhancement, and pre-upscale sharpening. Images are processed locally and never uploaded.
- Browser OCR
A local PP-OCRv5 mobile text detection and recognition entry for screenshots, receipts, IDs, and form images
- Document Layout and Table Detection
A PP-DocLayout browser-side document structure detection entry for titles, paragraphs, tables, and figures
- Monocular Depth Estimation
A Depth Anything V2 Small ONNX/WebNN browser tool for generating relative depth maps
- SVG Preview
Preview and edit SVG code online