Tools / APNs Payload Builder & Validator

APNs Payload Builder & Validator.

Build or validate an Apple push notification payload, check the 4 KB limit and get the right apns-* headers.

Runs in your browser

Added next to aps. For Live Activities these keys become aps.content-state. JSON values (numbers, true, {…}) are kept as JSON.

Ctrl/⌘ + Enter to run · Ctrl/⌘ + Shift + C to copy the result

Result
Checks
Payload
HTTP/2 headers
Size

About APNs Payload Builder & Validator

An Apple Push Notification service request has two halves: HTTP/2 headers such as apns-push-type, apns-topic and apns-priority, and a JSON body whose aps dictionary tells iOS what to show. Small mistakes in either half fail silently: a background push sent with priority 10, content-available set to true instead of 1, a badge sent as a string, a custom key placed inside aps, or a payload a few bytes over the limit. This builder assembles a correct payload from simple fields, or validates JSON you paste from your backend. Choose a push type and fill in title, body, badge, sound, category, thread ID, interruption level or relevance score, and add custom data as key = value lines. The output shows the JSON, the headers to send (including the topic suffix for VoIP, Live Activity and other push types), the size in bytes against the 4096-byte limit (5120 for VoIP), and a list of checks. For example, an order update with mutable-content lets a Notification Service Extension attach a product image, and the tool warns if mutable-content is set without an alert, because the extension would never run. Live Activity payloads are checked for timestamp, event, content-state and the attributes a start event needs. Entitlement-gated options such as critical alerts and time-sensitive notifications are flagged so you remember the capability. It validates structure and documented keys; it cannot know whether your device token or certificate is valid. Everything runs locally in your browser.

How to Use

  1. Pick build or validate mode and the push type.
  2. Fill in the alert fields and custom data, or paste the JSON payload your server sends.
  3. Fix anything the checks report, then copy the payload and headers into your APNs request.

Frequently Asked Questions

What is the maximum APNs payload size?

4096 bytes for regular remote notifications and 5120 bytes for VoIP notifications, measured as UTF-8 JSON. Larger payloads are rejected with PayloadTooLarge.

Why doesn't my background notification wake the app?

A background push needs apns-push-type background, apns-priority 5 and "content-available": 1 with no alert, sound or badge. iOS also throttles background pushes, so not every one is delivered immediately.

Where should custom data go?

Next to aps at the top level of the JSON, not inside aps. Apple reserves the aps dictionary for its own keys.

Does it send a test push?

No. It only builds and checks the payload and headers in your browser; sending needs your APNs key or certificate and a device token.

Related Tools