---
title: Writing data to magic cards
slug: zero/nfc/magic-cards
description: Learn how to write the UID and data from an original card to an NFC magic card
image: https://archbee-image-uploads.s3.amazonaws.com/3StCFqarJkJQZV-7N79yY/5kBcyNGJaceDWiYWCPs2F_magiccardsprev-1.png
docTags: 
createdAt: 2023-03-06T09:08:38.000Z
---

![](https://api.archbee.com/api/optimize/3GUDYkC5JgUWgo6RW8piO-krTDtVEgklKVffjrKttyY-20241025-092905.png)

Standard NFC cards have unique identifier (UID) numbers assigned by the manufacturer. These numbers can’t be changed. **NFC magic** or **UID rewritable** are special cards that can change their UIDs. That makes magic cards more powerful — they can copy the UID and data of an original card. There are [different generations](https://lab401.com/blogs/academy/know-your-magic-cards) of magic cards.

On this page, you’ll learn about supported magic cards and how to write the UID and data from an original card to an NFC magic card.

:::Iframe{iframeHeight="0" code="<div class=&#x22;info flipper-callout&#x22;>&#xA;    <div class=&#x22;callout-header&#x22;></div>&#xA;To use this feature, you need to download the <a href=&#x22;https://lab.flipper.net/apps/nfc_magic&#x22; onclick=&#x22;next.router.push('https://lab.flipper.net/apps/nfc_magic')&#x22;><u>NFC Magic</u> app to your Flipper Zero from <a href=&#x22;https://docs.flipper.net/zero/apps&#x22; onclick=&#x22;next.router.push('https://docs.flipper.net/zero/apps')&#x22;><u>Apps</u>.&#xA;</div>"}

:::

***

# Writing card data

Flipper Zero can write data to **Gen1**,**&#x20;Gen2**, and **Gen4** magic cards, as well a&#x73;**&#x20;regular MIFARE Classic®** cards (without rewriting the UID).

**Gen1 magic cards** can be configured as the following card type:

- MIFARE Classic® 1K

**Gen2 magic cards** can be configured as the following card type:

- MIFARE Classic® 1K (Compatible Gen 2 card is required)
- MIFARE Classic® 4K (Compatible Gen 2 card is required)

**Gen4 (Ultimate) magic cards&#x20;**&#x63;an be configured as the following card types:

- Any MIFARE Classic®
- MIFARE Ultralight® EV1
- MIFARE Ultralight® EV2
- NTAG® 203
- NTAG® 213
- NTAG® 215
- NTAG® 216

To copy the original NFC card, you need to write the original UID and data to the NFC magic card by doing the following:

::::WorkflowBlock
:::WorkflowBlockItem
[Read and save the original card](https://docs.flipper.net/zero/nfc/read). Make sure that your Flipper Zero reads all sectors or pages of the original card!
:::

:::WorkflowBlockItem
Go to **Main Menu** **-> Apps -> NFC -> NFC Magic**.
:::

:::WorkflowBlockItem
Check if you have a compatible Gen1, Gen2, or Gen4 magic card by using the **Check Magic Tag** option and holding the magic card near the back of your Flipper Zero.
*or*
If you have a password-protected Gen4 card, go to **Gen4 Actions -> Auth with password** to enter the password manually. Then use the **Check Magic Tag** option.

![](https://api.archbee.com/api/optimize/3GUDYkC5JgUWgo6RW8piO-PYPg8lTp6xekgfufC9sKD-20241107-112912.png "Hold the card near the back of your Flipper Zero")
:::

:::WorkflowBlockItem
If the magic card is supported, you’ll see the message below, otherwise your Flipper Zero will keep trying to determine the card type.

![](https://api.archbee.com/api/optimize/3StCFqarJkJQZV-7N79yY/yYLTTW3EeuKEu5sUJzNc8_magic-cards-apps.jpg "Your Flipper Zero will let you know if you have the magic card")
:::

:::WorkflowBlockItem
Go to **More** to see options for this type of magic card.
:::

:::WorkflowBlockItem
To write the UID and data of the original card, use the **Write&#x20;**&#x6F;ption.
:::

:::WorkflowBlockItem
Select the original card in the browser and hold the magic card near the back of your Flipper Zero.
:::

:::WorkflowBlockItem
Once your Flipper Zero writes data to the magic card, you’ll see the message below.

![](https://api.archbee.com/api/optimize/3StCFqarJkJQZV-7N79yY/NOJZtJassRTaSFXSUznfk_magic-cards-apps-1.jpg "The data of the original card is written to the magic card")
:::
::::

You can also format the magic card by using the **Wipe** option — the UID will be reset to the default, and data in sectors or pages will be deleted.

***

MIFARE and MIFARE Classic are registered trademarks of NXP B.V.
