Base64 Encoder / Decoder
Encode plain text to Base64 or decode Base64 back to text.
Upload an image, preview it, convert it into a Base64 data URL, copy the Base64 string or full data URL, and see output length.
Tip: MH Tools runs this utility in your browser for quick no-login use. Review generated output before publishing or sharing it.
Image to Base64 is part of the Image Tools collection in MH Tools. It is designed for fast, no-login use and works well for quick browser-based tasks.
This tool reads your uploaded image with FileReader and creates a Base64 data URL that can be copied for small embeds or testing.
Step 1: Upload an image.
Step 2: Review the preview and output length.
Step 3: Copy the Base64 string or full data URL.
No. The image is read locally in your browser.
Usually no. Base64 is best for small assets or testing.
Encode plain text to Base64 or decode Base64 back to text.
Compress JPG, PNG, and WebP images locally with quality and size controls.
Convert images to JPG, PNG, or WebP when your browser supports the format.
Format, minify, and validate JSON with clean error messages.
Resize images locally with width, height, and aspect ratio lock controls.
Crop images locally with numeric crop controls and common aspect ratios.
Compress JPG, PNG, and WebP images locally with quality and size controls.
Resize images locally with width, height, and aspect ratio lock controls.
Convert images to JPG, PNG, or WebP when your browser supports the format.
Crop images locally with numeric crop controls and common aspect ratios.
Conversion happens in your browser with FileReader. The image is not uploaded or saved by MH Tools.
Convert JPG, PNG, or WebP to a Base64 data URL. Max 8 MB.
Original size
-
Image size
-
Data URL length
-
Base64 length
-
Upload an image to see the preview.