ToolAssay

Compress a PDF towards a target size without crossing your readability limit

Compress a PDF towards a target size without crossing your readability limit: images are resampled to the lowest effective resolution and JPEG quality you allow, streams are packed losslessly, and page count and text are verified unchanged. Measures the largest placed size of every image XObject from the page content (pdf-lib 1.17.1 plus own content interpreter) and derives its effective resolution.

Answeringour last check, 2026-11-26
7 of 7checks answered this week
1191 msmedian answer time
$0.005listed price per call
$0.005price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

POST https://format.halowerk.com/v1/pdf-compress-to-size

CategoryImage and media
Provider hostformat.halowerk.com
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days2 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-11-26 valid payment request 402$0.005 1221 ms
2026-11-25 valid payment request 402$0.005 1184 ms
2026-11-24 valid payment request 402$0.005 1202 ms
2026-11-23 valid payment request 402$0.005 1191 ms
2026-11-22 valid payment request 402$0.005 1204 ms
2026-11-21 valid payment request 402$0.005 1179 ms
2026-11-20 valid payment request 402$0.005 1191 ms
2026-11-19 valid payment request 402$0.005 1133 ms
2026-11-18 valid payment request 402$0.005 320 ms
2026-11-17 valid payment request 402$0.005 379 ms
2026-11-16 valid payment request 402$0.005 354 ms
2026-11-15 valid payment request 402$0.005 324 ms
2026-11-14 valid payment request 402$0.005 349 ms
2026-11-13 valid payment request 402$0.005 354 ms

Example input (from the provider)

{
  "body": {
    "content_base64": "JVBERi0xLjcKMSAwIG9iago8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvQWNyb0Zvcm08PC9GaWVsZHNbNCAwIFIgNSAwIFJdPj4+PgplbmRvYmoKMiAwIG9iago8PC9UeXBlL1BhZ2VzL0tpZHNbMyAwIFJdL0NvdW50IDE+PgplbmRvYmoKMyAwIG9iago8PC9UeXBlL1BhZ2UvUGFyZW50IDIgMCBSL01lZGlhQm94WzAgMCAzMDAgMjAwXS9Bbm5vdHNbNCAwIFIgNSAwIFJdPj4KZW5kb2JqCjQgMCBvYmoKPDwvVHlwZS9Bbm5vdC9TdWJ0eXBlL1dpZGdldC9GVC9UeC9UKG5hbWUpL1RVKEZ1bGwgbmFtZSkvTWF4TGVuIDQwL0ZmIDIvUmVjdFsyMCAxNTAgMjIwIDE2OF0vUCAzIDAgUj4+CmVuZG9iago1IDAgb2JqCjw8L1R5cGUvQW5ub3QvU3VidHlwZS9XaWRnZXQvRlQvQ2gvVChjb3VudHJ5KS9GZiAxMzEwNzIvT3B0WyhERSkoQVQpKENIKV0vVihERSkvRFYoREUpL1JlY3RbMjAgMTIwIDgwIDEzOF0vUCAzIDAgUj4+CmVuZG9iagp4cmVmCjAgNgowMDAwMDAwMDAwIDY1NTM1IGYgCjAwMDAwMDAwMDkgMDAwMDAgbiAKMDAwMDAwMDA4NyAwMDAwMCBuIAowMDAwMDAwMTM4IDAwMDAwIG4gCjAwMDAwMDAyMjMgMDAwMDAgbiAKMDAwMDAwMDM0MSAwMDAwMCBuIAp0cmFpbGVyCjw8L1NpemUgNi9Sb290IDEgMCBSPj4Kc3RhcnR4cmVmCjQ3MwolJUVPRgo=",
    "target_bytes": 100000
  },
  "bodyType": "json",
  "method": "POST",
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": false,
          "properties": {
            "content_base64": {
              "description": "The PDF as base64 (a data: prefix and whitespace are tolerated); at most 10 MB decoded.",
              "maxLength": 13981016,
              "minLength": 8,
              "type": "string"
            },
            "drop_thumbnails": {
              "default": true,
              "description": "Remove embedded page thumbnails (viewers regenerate them).",
              "type": "boolean"
            },
            "lossy": {
              "default": true,
              "description": "Allow converting lossless (Flate) images to JPEG when that is smaller.",
              "type": "boolean"
            },
            "min_jpeg_quality": {
              "default": 60,
              "description": "Readability limit: JPEG quality (libjpeg scale) is never set below this value.",
              "maximum": 95,
              "minimum": 40,
              "type": "integer"
            },
            "min_ppi": {
              "default": 150,
              "description": "Readability limit: images are never resampled below this effective resolution.",
              "maximum": 600,
              "minimum": 72,
              "type": "integer"
            },
            "target_bytes": {
              "description": "Desired maximum file size in bytes.",
              "maximum": 10485760,
              "minimum": 1000,
              "type": "integer"
            },
            "url": {
              "description": "Public http(s) URL of the PDF (at most 10 MB). Private, local and reserved addresses are refused.",
              "format": "uri",
              "maxLength": 2048,
              "type": "string"
            }
          },
          "required": [
            "target_bytes"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST",
            "PUT",
            "PATCH"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON