Skip to content
Browse all functions

Convert Image Format – PNG, JPEG, GIF, BMP, TIFF

images/convertimage

convertimage (Convert Image Format – PNG, JPEG, GIF, BMP, TIFF) is a 1001fx API function in the group Images: POST https://api.1001fx.com/images/convertimage, 3 credits per call. It works as a ready-made module in Make or as a plain HTTP call.

3 credits per callHTTP APIMake

Converts an image into PNG, JPEG, GIF, BMP or TIFF. Transparent areas become the background color for formats without transparency (JPEG, BMP).

Try it in the 1001fx app

Run convertimage in your browser with your API key – fill the form, click Run and get the answer or the file.

convertimage in the 1001fx app: the form with example values
Convert Image Format – PNG, JPEG, GIF, BMP, TIFF in the 1001fx app

Endpoint

POSThttps://api.1001fx.com/images/convertimage
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
multipart/form-data

Parameters

  • filefileoptional

    The image (PNG, JPEG, BMP, TIFF, GIF). Either file or fileUrl.

  • fileUrlstringoptional

    Public URL of the image. Either file or fileUrl.

    Example:
    https://api.1001fx.com/testdata/image.png
  • formatenumrequired

    Target format.

    Values:
    png
    jpeg
    bmp
    tiff
    gif
    Example:
    jpeg
  • qualitynumberoptional

    1 to 100, default 90.

    Default:
    90
    Min:
    1
    Max:
    100
  • backgroundstringoptional

    Color behind transparent areas for JPEG/BMP, default #ffffff.

    Default:
    #ffffff

Examples

Convert Image Format – PNG, JPEG, GIF, BMP, TIFF

Convert Image Format – PNG, JPEG, GIF, BMP, TIFF

Input

Expects multipart/form-data or a json body
{
  "fileUrl": "https://api.1001fx.com/testdata/image.png",
  "format": "jpeg"
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/images/convertimage' \
  -H 'X-API-KEY: YOURSECRETAPIKEY'

Try convertimage now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.001.11.2026created
Ask 1001fx