---
name: "nfc-mfsetuid"
section: "1"
platform: "linux"
package: "libnfc"
version: "1.8.0-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/nfc-mfsetuid"
---

# nfc-mfsetuid(1)

MIFARE 1K special card UID setting and recovery tool

## NAME

nfc-mfsetuid - MIFARE 1K special card UID setting and recovery tool

## SYNOPSIS

**nfc-mfsetuid** \[ *UID* \]

## DESCRIPTION

**nfc-mfsetuid** is a MIFARE tool that allows setting of UID on special versions (Chinese clones) of Mifare 1K cards. It will also recover damaged cards that have had invalid data written to block 0 (e.g. wrong BCC). Currently only 4 Byte UID is supported. Specify an eight hex character UID or leave blank for the default '01234567'.

## OPTIONS

**-f** Format. Wipe all data (set to 0xFF) and reset ACLs to defaults.

**-q** Quiet. Suppress output of commands and responses.

## BUGS

Please report any bugs on the **libnfc** issue tracker at:\
 **https://github.com/nfc-tools/libnfc/issues**

## LICENCE

**libnfc** is licensed under the GNU Lesser General Public License (LGPL), version 3.\
 **libnfc-utils** and **libnfc-examples** are covered by the the BSD 2-Clause license.

## AUTHORS

Adam Laurie \<adam@algroup.co.uk\>

This manual page was written by Adam Laurie \<adam@algroup.co.uk\>. It is licensed under the terms of the GNU GPL (version 2 or later).
