> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hedera.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NFT ID

The ID of a non-fungible token (NFT). The NFT ID is composed of the [**token ID**](/native/tokens/token-id) and a **serial number**.

| Constructor                     | Description                  |
| ------------------------------- | ---------------------------- |
| `new NftId(<tokenId>,<serial>)` | Initializes the NftId object |

```java theme={null}
new NftId()
```

## Methods

| Method                   | Type      | Requirement |
| ------------------------ | --------- | ----------- |
| `NftId.fromString(<id>)` | String    | Optional    |
| `NftId.fromBytes(<id>)`  | bytes \[] | Optional    |

<CodeGroup>
  ```java Java theme={null}
  new NftId(new TokenId(0,0,2), 56562);

  // v2.0.11
  ```

  ```javascript JavaScript theme={null}
  new NftId(new TokenId(0,0,2), 56562);

  // v2.0.28 
  ```

  ```java Go theme={null}
  nftId := hedera.NftID{
      TokenID: tokenId,
  		SerialNumber: serialNum,
  }

  // v2.1.13
  ```
</CodeGroup>
