Image to PDF API

PSPDFKit API is an HTTP API that lets you convert various image formats into PDF. Use our image to PDF conversion API to convert JPG, PNG, and TIFF files to PDF.

Try It Out

This example will convert your uploaded PNG file to a PDF.


Use Your Free Credits

Sign up to get 100 free credits, or log in to automatically add your API key to sample code.

Add a File

Add a PNG file named image.png to your project folder. You can also use our sample file.

Run a Command

Copy the curl command and run it in that same folder via the terminal or your editor’s terminal.

View the Results

Open result.pdf in your project folder to view the results.

    curl -X POST \
        -H "Authorization: Bearer your_api_key_here" \
        -o result.pdf \
        -F image=@image.png \
        -F instructions='{
            "parts": [
              { "file": "image" }
Using Postman? Download our official collection and start using the API with a single click. Read more 

Your API Key

Get access to your API key when you create an account. Once your account has been created, you’ll receive 100 free credits for using with any of our API tools.

Your API key has automatically been inserted into the API example code. Run the sample code in your terminal to execute the API call.

Already Have an Account? Sign In →