Encode a one-pixel PNG
- Input
- In the Decode tab, paste the exact data URI shown in this example’s result, decode it, and click Download to save the PNG. Switch to Encode, check Include Prefix before selecting that downloaded file.
- Result
- data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR4nGP4z8DwHwAFAAH/iZk9HQAAAABJRU5ErkJggg==
- How to check it
- The selected PNG bytes are encoded in Base64 and prefixed with their image MIME type.