Beta RazorAPI is in beta testing — new registrations are closed for now. Public launch coming soon. Details

Image → Base64

Image to Base64

Encode PNG, JPEG, GIF, WebP, or SVG into Base64 and data URIs.

Playground

Image to Base64

Upload an image (max ~2 MB). Returns Base64 and a data URI.

Ready

Optional — try the API without a key (shared tools quota). Public signup is closed during beta — learn more.

Uses the tools API proxy when no key is entered.

Embed assets

Images as Base64

Data URIs for CSS, HTML, and JSON payloads

Common formats

PNG, JPEG, GIF, WebP, and SVG are supported.

MIME checked

Size capped

Uploads are limited so shared infrastructure stays healthy.

~2 MB

Data URI included

Copy raw Base64 or a ready data:image/…;base64 string.

data_uri

API included

POST multipart image or Base64 data to /v1/convert/image-to-base64.

POST /convert/image-to-base64

Need this as an API?

Embed small assets without hosting extra files

View API Docs