Convert SVG, HEIC, WebP, PNG and JPEG images

Drop a static SVG drawing or a HEIC, WebP, PNG or JPEG image and choose an output format. PNG and WebP preserve transparency. JPEG fills transparent areas with white. You can download the result from Storage for 24 hours.

The whole API
curl -s -X POST https://aisenseapi.com/services/v1/image_convert \
  -F "file=@photo.jpg" \
  -F "format=webp"

{
  "storage_id": "1ddd4269-b51c-4209-a4de-6908926f672b",
  "storage_url": "https://aisenseapi.com/services/v1/storage/1ddd4269-b51c-4209-a4de-6908926f672b",
  "sha256_hash": "97350f282284446cbb19db5a0695a654e0162fafd52db766fb12099b6497202d",
  "bytes": 195648,
  "expire_timestamp": 1790767674,
  "expire_datetime": "2026-09-30T11:27:54+00:00",
  "content_type": "image/webp",
  "filename": "result.webp",
  "operation": "image_convert",
  "format": "webp",
  "width": 1600,
  "height": 1200,
  "input_format": "jpeg",
  "input_bytes": 641358
}
No API key SVG and HEIC input JPEG, PNG or WebP output 24-hour Storage

Try it in the browser

This form posts your image to the same endpoint and shows the stored result. The image is sent to aisenseapi.com, and the result is kept for 24 hours at a link that anyone with the link can open.

Drop an image here or click to choose one, or paste it with Ctrl+V. JPEG, PNG, WebP or HEIC up to 10 MB, or static SVG up to 1 MiB.

How the conversion works

The API

POST https://aisenseapi.com/services/v1/image_convert with multipart/form-data.

FieldRequiredMeaning
fileyesJPEG, PNG, WebP, HEIC or static SVG.
formatyesjpeg, png or webp. jpg is read as jpeg.
qualityno40 to 95, for JPEG and WebP. 82 when left out.
losslessnotrue or false, for WebP only. Lossless takes no quality.

A GET on storage_url returns the image with its own image type, so the link also works in an <img> tag.

Render an SVG as PNG, JPEG or WebP

Upload a UTF-8 SVG with positive dimensions in pixels or a viewBox. Paths, basic shapes and groups can use solid fills, strokes and transforms. Convert lettering to paths and expand reused shapes in your editor. The renderer rejects scripts, animation, stylesheets, links, embedded images, gradients, filters, use, DTDs and entities. Keep the source within 1 MiB, 4096 pixels per side and 4 megapixels. It may contain up to 2048 elements nested at most 32 levels deep.

Run these commands in a shell with curl and jq to draw a circle and save the rendered PNG. Set format to jpeg or webp and change the output filename to try either format.

printf '%s' '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><circle cx="32" cy="32" r="24" fill="#2367ae"/></svg>' > mark.svg
curl -fsS https://aisenseapi.com/services/v1/image_convert \
  -F 'file=@mark.svg;type=image/svg+xml' -F 'format=png' -o converted.json &&
curl -fsS "$(jq -er .storage_url converted.json)" -o mark.png

To go the other direction, trace a PNG or JPEG into SVG paths.

The answer is a Storage link

The endpoint never sends the image in its answer. It stores the result for 24 hours and answers with the same fields the Temporary Storage API answers with, plus what the result is:

FieldMeaning
storage_id, storage_urlWhere the result is. A GET on the URL returns the image.
sha256_hash, bytesThe digest and size of the stored image.
expire_timestamp, expire_datetimeWhen the result is removed, 24 hours after it was stored.
content_type, filenameThe type of the image and the name to save it under.
operation, format, width, heightThe endpoint that made it, and the format and size of the result in pixels.
input_format, input_bytesWhat the upload was, so the saving can be read off.

The example at the top of the page comes from a test run with a test image of 1600 x 1200 pixels. The id and the expiry are different on every call, and the sizes depend on the image.

Anyone with the link can open the image until it expires, so do not send pictures of people or anything confidential. Stored results count against the Storage budget of 80 MB per IP address per day.

Limits

Errors

A refused request stores nothing and answers with error. The endpoint's own refusals also carry fix, a sentence saying what to send instead.

StatusWhen
400A field is missing or invalid, or the image cannot be read or rendered.
405The method is not POST.
413The upload, its number of pixels or the result is over a limit.
415The body is not multipart/form-data, or the file is not a JPEG, PNG, WebP, HEIC or supported static SVG.
429More than 5000 requests from one IP address per day, or the day's Storage budget is used up.
503The renderer is busy, timed out or unavailable.

Questions

Is the image converter API free?

Yes. No API key, no account and no sign up. The limit is 5000 requests per IP address per day, and stored results count against the Storage budget of 80 MB per IP address per day.

Does it keep transparency?

In PNG and WebP, yes. JPEG has no transparency, so transparent pixels become white.

Is the GPS position removed?

Yes. EXIF, XMP, IPTC and comments are removed from every result. The color profile is kept, so the colors stay the same.

Can it convert HEIC or GIF?

HEIC, yes: a photo from an iPhone becomes a JPEG, PNG or WebP, turned the right way and with its color profile. GIF, no.

All image endpoints All free public APIs