VAPID Keys Generator

Generate VAPID keys for web push notifications securely in your browser - 100% private, no data leaves your device

About VAPID Keys Generator

Overview

VAPID (Voluntary Application Server Identification) keys are needed for web push notifications. This tool makes a secure key pair in your browser, so no data is sent to a server. The keys are made with the Web Crypto API and work with all major web push services. Your keys never leave your device, so they are always safe.

Features

  • 🔒 100% private. All keys are made in your browser.
  • 🛡️ No data is sent to a server.
  • Makes secure ECDSA P-256 key pairs.
  • Outputs keys in base64url format.
  • Single JSON output with subject, public, and private keys.
  • One-click copy to clipboard.
  • Download the JSON file for backup.
  • Works with all major web push services.
  • Makes keys automatically when the page loads.
  • Formatted JSON output for easy use.

How to Use

  1. Enter a subject, which is usually a mailto: URL or your website URL.
  2. Click "Generate VAPID Keys" to make a new key pair.
  3. Copy the JSON with all the VAPID keys.
  4. Use the public key in your service worker.
  5. Keep the private key safe on your server for signing push messages.
  6. Use the "Download" button to save the JSON file as a backup.

FAQ

What is VAPID?

VAPID is a way for a server to identify itself to a push service. It lets you send push messages without having to use a service like Firebase. This is done with a public and private key pair.

Why do I need VAPID keys?

You need VAPID keys to send push notifications. The public key is used by the user's browser to sign up for your notifications, and the private key is used by your server to sign the push messages it sends. This makes sure the messages are from a trusted source.

Is it safe to generate VAPID keys in my browser?

Yes, it is safe to use this tool. It uses the secure Web Cryptography API to make the keys on your device. Your private key is never sent over the internet, so it stays private.