Push Notification Payload Builder

Build a Web Push notification payload, validate common fields, preview the content, and generate service worker handlers.

PWA & Browser Storage Local processing Payload data is processed in your browser.

Payload builder

Do not paste private keys. This field only checks the public key format.

Notification actions

Many platforms support only a small number of actions. This tool allows up to two.

Results

Configure the notification and build the payload.

Preview

Introduction

Web Push notifications require careful payload construction. The notification title, body, icons, actions, click behavior, and platform limits all affect whether the notification works well in production.

This tool helps you build and inspect the payload before integrating it with your application server and service worker.

How it works

The tool collects your notification fields, validates them locally, and produces a JSON payload shaped for use inside a service worker push handler. It also generates a starter service worker snippet that displays the notification and handles clicks.

  • Payload generation happens locally.
  • Remote preview images are not loaded automatically.
  • VAPID key checking validates format only.
  • Actual delivery must be implemented by your application server.

How to use

  1. Enter the notification title and body.
  2. Add optional icon, badge, image, tag, and click URL.
  3. Add up to two notification actions if needed.
  4. Optionally check a VAPID public key format.
  5. Click Build payload.
  6. Copy the JSON payload and service worker snippet.

Practical example

A simple payload may look like this:

{
  "title": "New update available",
  "options": {
    "body": "Your changes have synced successfully.",
    "icon": "/icons/icon-192x192.png",
    "badge": "/icons/badge-72x72.png",
    "tag": "sync-update",
    "data": {
      "url": "/dashboard/"
    }
  }
}

Use cases

  • Prototyping notification payloads before backend integration.
  • Testing notification actions.
  • Checking payload size before deployment.
  • Preparing examples for documentation.
  • Debugging missing notification fields.

Best practices

  • Keep payloads small.
  • Use meaningful titles and concise bodies.
  • Provide a click URL for better user engagement.
  • Use tags to replace related notifications.
  • Test notifications across platforms and screen sizes.

Common mistakes

  • Pasting private keys into client-side tools.
  • Using oversized payloads.
  • Adding too many actions for supported platforms.
  • Forgetting that push delivery requires a server.
  • Assuming every browser supports every notification field.

Limitations

  • This tool does not send real push messages.
  • It does not validate push subscriptions.
  • VAPID validation is limited to public key format.
  • Notification rendering varies by operating system and browser.

Browser compatibility

  • Chrome and Edge: Strong Notifications and Push API support.
  • Firefox: Supports many notification features, but platform behavior may differ.
  • Safari: Push support follows Apple’s platform rules and may differ from Chromium behavior.

FAQ

Is my payload uploaded?

No. Everything is processed locally in your browser.

Can this tool send a push notification?

No. Web Push delivery requires an application server, push subscription, and VAPID authentication.

Should I paste my VAPID private key?

No. Private keys should remain secret on your server. This tool only checks public key format.

How large should a push payload be?

Keep it small. Many Web Push implementations use limits around 4 KB, so compact payloads are safer.

References

Version and changelog

  • Version: 1.0.0
  • Last updated: August 8, 2026
  • Changelog: Initial production release.