Pro Pro is active in this browser. Open your Pro accountPro free trial is active. Open your Pro accountPro is active but will not renew. Open your Pro account

Google Wallet Business Card Pass Builder

This page writes the GenericObject JSON and the unsigned JWT claims for that pass, with your vCard in the QR code. It cannot put the card into Google Wallet; signing and issuing happen in your own Google Wallet API issuer account.

Free · runs in your browser · nothing is uploaded

Open on Cardhandout

This embed was switched off for this website. Open on Cardhandout

Add this tool to your siteFree embed code, no sign-up. Keep the credit link.

Embed this tool

Copy this code into your website, blog or class page. The tool runs inside your page.

Optional settings, added to the address after embed=1: &accent=0f6b5c (colour, 3 or 6 hex digits). Other parameters are ignored.

Please keep the credit link below the tool.

A Google Wallet business card is a Generic pass that shows your name and a QR code with your contact details. Enter your details and the page writes the GenericObject JSON for it, with your vCard in the QR code, next to an approximate preview. It can also download the matching unsigned claims for an “Add to Google Wallet” JWT.

What it does not do: it cannot put the card into Google Wallet. Google saves a pass only through an “Add to Google Wallet” link (a pay.google.com/gp/v/save/ address followed by a JWT) whose JWT is signed with the private key of a Google Cloud service account that belongs to a Google Wallet API issuer account. New issuer accounts start in demo mode until Google grants publishing access.

Enter your details in the pass builder, then download the object JSON or the unsigned JWT claims.

At a glance

A Google Wallet business card is a Generic pass that shows your name and a QR code with your contact details. The QR code holds your vCard, so a phone camera that reads the pass offers to save the contact.

  • Google recommends keeping the encoded JWT under about 1,800 characters, because browsers may cut longer links.
  • Phone numbers should use the international format, such as +1 555 010 0123.
  • The JWT must be signed (RS256) with your service-account private key.
  • New issuer accounts start in demo mode until Google grants publishing access.
  • Empty fields are left out of the JSON, so a blank website does not appear on the pass.

Last checked:

Google wallet business card example

How to use it

  1. Enter your details. Use the international format for the phone number, such as +1 555 010 0123. Empty fields are left out of the JSON, so a blank website does not appear on the pass.
  2. Add your issuer ID if you already have one (from the Google Pay & Wallet Console). Otherwise the IDs use the placeholder ISSUER_ID.
  3. Pick a background colour – it is written to hexBackgroundColor.
  4. Scan the preview QR code with your phone to check the contact it saves.
  5. Download the object JSON or the unsigned JWT claims.
  6. In your own project: keep the service-account key on your server, never in a web page. Create a Generic class (ISSUER_ID.business_card), insert the object through the Google Wallet REST API, then sign a JWT with your service-account key and share the save link or button.

What you need before step 6

  • A Google Wallet API issuer account, created in the Google Pay & Wallet Console; it gives you the numeric issuer ID.
  • A Google Cloud project with the Google Wallet API enabled and a service account that is added as a user of your issuer account. Keep its key file on your server only.
  • A small server-side script (Google publishes samples for several languages) that creates the class, inserts the object and signs the JWT.
  • Publishing access if people outside your test accounts should be able to save the pass.

How a Google Wallet generic pass is put together

  • Generic class – a template that objects point to through classId. Its ID has the form <issuer ID>.<your suffix>.
  • Generic object – one person’s pass. The API requires id, classId, cardTitle and header. This tool also fills subheader (job title), barcode (type: "QR_CODE", your vCard as the value), textModulesData (phone, email, website) and hexBackgroundColor. Object IDs also use the <issuer ID>.<suffix> form and may contain only letters, digits, ., _ and -.

An “Add to Google Wallet” link carries a JWT with aud: "google", typ: "savetowallet" and a payload such as genericObjects. The JWT must be signed (RS256) with your service-account private key – never put that key in a web page. Google recommends keeping the encoded JWT under about 1,800 characters, because browsers may cut longer links. A vCard in the barcode makes the object long, so for real use insert the object through the REST API first and put only its id in the JWT payload.

Updating a pass

Unlike a printed card, an issued Google Wallet pass can be changed: update the object through the REST API (for example a new phone number in textModulesData or a new vCard in barcode.value) and the saved pass changes on the holder’s phone. Keep the object id stable so you can find it again.

Pass or plain QR code?

A Wallet pass is useful for showing your card quickly from your own Android phone. If you only need other people to save your details, a vCard QR code or an NFC tag needs no developer account.

Why the vCard sits in the barcode

The barcode value is the same vCard that the preview shows, so a phone camera that reads the pass offers to save the contact, just like a printed code. Because the barcode carries the whole contact, the object grows with every field you fill in. Check the preview after each change to confirm the code still scans from a phone screen.

Field length

Keep cardTitle, header and the text modules short; Google Wallet cuts long text on small screens. The full details belong in the vCard inside the QR code.

FieldWhat it holds
id and classIdRequired by the API; use the <issuer ID>.<suffix> form
cardTitle and headerRequired by the API; keep them short
subheaderJob title
barcodetype: "QR_CODE", with your vCard as the value
textModulesDataPhone, email, website
hexBackgroundColorThe background colour you pick

Frequently asked questions

Can I add the JSON from this page to my phone?

No. Google Wallet only accepts a pass through a save link signed by an issuer account, or one issued through the API.

Do I need a Google Wallet API issuer account?

Yes, to issue passes yourself. Sign up in the Google Pay & Wallet Console; new accounts start in demo mode until publishing access is granted.

Can iPhone users scan the QR code on my pass?

Yes. The QR code is a standard vCard, which the iPhone and Android camera apps can save as a contact.

What is the difference between a class and an object?

The class is the shared template; the object holds one person’s details and points to the class through classId.

Can I change the background colour?

Yes. The colour you pick is written to hexBackgroundColor in the object JSON. Pick a colour that keeps the text easy to read on a phone screen.

What happens to fields I leave empty?

They are left out of the JSON, so the pass shows nothing in their place. Fill in at least a name and an email if you want the saved contact to be useful.

Is anything sent to Google or to us?

No. The JSON is built in your browser.

Why does the JSON say ISSUER_ID?

It is a placeholder. Type your issuer ID in the form, or replace it before you insert the class and object.

See all vCard, Wallet and NFC Tools.