---
schema_version: "1"
id: e691d11cb53190ef544639234e0c67f8dfdaf6c1cfbfda86a9b9c4cc99c59e6b
title: GUID()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/ampscript/references/utilities/mc-ampscript-reference-utilities-guid.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-utilities/mc-ampscript-reference-utilities-guid.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 904e44607455d22c3a945b2c70b492dc45390c57aae1520edaec1ad3d5f387b0
products:
  - AMPscript for Marketing Cloud
  - Marketing Cloud
---
# GUID()

Generates a 128-bit hexadecimal Globally Unique Identifier (GUID).

## Availability

<table>
  <tr>
    <td>Marketing Cloud Engagement</td>
    <td>✅ Yes</td>
  </tr>
  <tr>
    <td>Marketing Cloud Next</td>
    <td>✅ Yes</td>
  </tr>
</table>

## Syntax

```
GUID()
```

The `GUID()` function doesn’t accept any parameters.

## Usage

This example generates a GUID.

```
%%=v(GUID())=%%
```

The output of this function is a unique identifier, such as `a0f71563-b064-4b02-a21a-571dadadafb1`.
