Developer API for TinyPNG

Hook up your server to TinyPNG and compress all your images on the fly. The API for TinyPNG uses the same compression engine that powers the web service so you can expect exactly the same results. Enter your name and email address below to retrieve your key and get started.

Once you retrieve your key, you can immediately start shrinking images. You can submit a PNG file with any HTTP client. The server will compress your image and respond with a URL where you can grab the result.

curl -i --user api:YOUR_API_KEY --data-binary @large.png https://api.tinypng.com/shrink

For more examples and details explore the API documentation.

Developer API


Article Navigation

Wait .. there's more!

Online CV Jan Rajtoral