Skip to content

Find your form GUID

Last updated: October 8, 2025

Available with any of the following subscriptions, except where noted:

The form GUID (Globally Unique Identifier) is a 128-bit integer number used for identification. The GUID is required when using HubSpot's Forms API, and can also help you identify a HubSpot form embedded on an external page.

Locate a form's GUID

Use the updated form editor

  1. In your HubSpot account, navigate to Marketing > Forms.
  2. Create a new form or hover over an existing form and click Edit.
  3. In the top right, click Review and update.
  4. In the right panel, at the bottom, click Update.
  5. In the dialog box, click Get embed code.
  6. In the dialog box, look for the data-form-id attribute value in the embed code. This is the form GUID. The form GUID also displays in the page URL when in the form editor. 
Screenshot of the form editor, highlighting the form ID in the browser URL and in the embed code.

Use the legacy form editor

  1. In your HubSpot account, navigate to Marketing > Forms.
  2. Hover over an existing form and click Edit.
  3. In the upper right, click Embed.
  4. In the dialog box, look for the formID attribute value in the embed code. This is the form GUID. The form GUID also displays in the page URL when in the form editor. 

Screenshot of the legacy form editor, highlighting the form ID in the browser URL and in the embed code.

 

Was this article helpful?
This form is used for documentation feedback only. Learn how to get help with HubSpot.