A hotel keycard is one of the least intelligent objects you will handle all week, and that is entirely deliberate. It carries a room number, a window of dates and times during which it should work, and a sequence number saying where it sits in the queue of guests for that room. Nothing else. No name, no booking reference, and emphatically no card details, despite one of the most durable myths in travel. The lock on the door is not much cleverer: it is a battery powered box with a small memory and a clock, not connected to anything, that compares what the card says against what it expects and decides whether to move a piece of metal.
That design is why the system works at all, and it is also why it fails in the specific, maddening ways it does. A lock with no network cannot be told that you have extended your stay. A card with no power of its own cannot tell you it has been damaged. And a lock running on a battery quietly loses a few seconds a month on its clock, which after two years is enough to make a card that expires at eleven stop working at ten fifty-two. Here is the whole thing, from the desk to the door.
Two kinds of card, and only one of them can be wiped
The older sort has a brown or black magnetic stripe: a layer of microscopic iron oxide particles, magnetised in patterns that a read head interprets as ones and zeros as the card is swiped. It is 1960s technology, it is cheap, and it wears out, because every swipe drags the stripe across a metal head until grit and abrasion make it unreadable.
The newer sort has no stripe and no contacts, and you tap it rather than swipe it. Inside is an RFID tag, radio frequency identification: a chip with a printed antenna and no battery, which draws the tiny amount of power it needs from the lock’s own radio field. Most hotel cards use the 13.56 megahertz standard, the same family as a contactless bank card, which we cover in our explainer on NFC.
The practical difference matters. A magnetic stripe can be erased. A chip cannot, because there is nothing magnetic in it to disturb.
What the desk actually writes to your card
Almost nothing about you. The encoder at reception writes a room identifier, a start and end time, a sequence number and, on modern systems, a cryptographic value that proves the card was written by an authorised encoder rather than knocked up in a back room.
The persistent story that hotel keycards store your name, home address and credit card number has circulated since a Californian police department repeated it in the early 2000s. It was untrue then and it is untrue now. The card has room for a handful of bytes and no reason to carry more, and hotels have no incentive to put payment data on plastic that guests routinely leave in taxis.
The lock is talking to nobody
The most surprising thing about hotel locks is that most are not connected to the hotel. No wire to reception, no wifi. Just a battery, usually four AA cells, a small processor, a memory holding the room’s codes and a clock.
Hotels chose this on purpose, because retrofitting a Georgian townhouse or a 1970s tower block with wiring to two hundred doors is ruinous, while swapping a mechanical lock for a battery powered one is an afternoon’s work per room. The trade-off is that the door has no idea what is happening at the front desk. Everything the lock knows, it learns from the cards presented to it.
The clever bit: how your card kills the last guest’s
This is the piece of design most people never notice, and it is genuinely elegant.
Every card issued for a room carries a sequence number, one higher than the last, and the lock remembers the highest it has seen. When you tap your card for the first time, the lock notices your number is higher than the one in its memory, updates itself, and from that moment refuses anything lower.
So the previous guest’s card is not cancelled at checkout. It is cancelled the first time you open your own door. In the window between their departure and your arrival their card still works perfectly, which is why hotels care so much about how quickly rooms are reallocated.
It also explains the lift. Where a lift requires a card, that reader is doing the same offline check against a floor code rather than a room code, which is why an expired card sometimes still gets you upstairs but not through your door.
Why your card stops working at the worst possible moment
There are five common causes, and only one of them is the one everybody blames.
The stripe is physically damaged. Scratches, sand, keys in the same pocket. Magnetic stripes are consumables and hotels replace them constantly.
The chip’s antenna has cracked. RFID cards fail differently. The antenna is a hair thin loop running around the inside of the plastic, and repeatedly bending the card, or sitting on it in a back pocket, can break it. A broken loop means no power, and a card that has worked for three days stops instantly and permanently.
The lock’s battery is low. Before it dies completely, a lock gets sluggish and intermittent, working on the third tap rather than the first. Most flash a low battery warning that nobody is looking for.
The clock has drifted. Locks keep time independently and drift by seconds a month. Over years, the lock’s idea of eleven o’clock and reception’s can separate by several minutes, and cards expire early.
The window was written wrong. If you extend your stay and reception forgets to re-encode, or a card is written for the wrong checkout date, the lock behaves exactly as instructed. This is the single most common cause and it happens at the desk, not the door.
The phone myth, tested honestly
For twenty years travellers have been told not to keep a keycard next to a mobile. The original claim was that a phone’s speaker magnet would wipe the stripe, and for most of that period it was nonsense: the fields involved were far too weak, and researchers who tried to reproduce it largely failed.
Then it quietly became partly true. Modern phones with magnetic attachment rings, and the magnetic wallet cases that clip to them, contain neodymium magnets that are genuinely strong enough to disturb a magnetic stripe held against them. Handbag clasps and some hotel key wallets can do it too.
The joke is the timing. Just as the myth acquired a grain of truth, hotels finished moving to chip cards, which no magnet can touch. If your card has a stripe, keep it away from magnets. If it taps, magnets are irrelevant and something else has gone wrong.
The security question hotels would rather you did not ask
Offline locks are convenient and cheap, and they have a history.
In 2012 a researcher showed that millions of Onity locks could be opened with a homemade device plugged into the small power socket underneath, which read out the code in the lock’s memory and then commanded it open. The parts cost tens of pounds.
More recently, flaws nicknamed Unsaflok were disclosed in March 2024 affecting Saflok locks made by dormakaba: more than three million doors across 13,000 properties in 131 countries. The attack needed only one keycard from the building, even an expired one, from which forged cards could be produced that opened any door on the property. The researchers reported it privately in September 2022 and held off publishing until upgrades were under way, and even then only around 36 per cent of affected locks had been updated.
None of this should keep you awake, because most hotel room thefts involve a propped door rather than cryptography. But it is a fair reminder that a lock which cannot phone home also cannot be patched remotely, and three million doors take years to fix.
Where it is going
The obvious successor is the phone you are already holding. Major chains now issue digital keys that live in a hotel app or in Apple Wallet and Google Wallet, and unlock the door over NFC or Bluetooth. The credential arrives the moment your room is ready, which removes the queue at reception, and it can be revoked instantly, which plastic never could.
The awkward parts are the ones you would expect. A flat phone battery is a locked-out guest, so hotels keep issuing cards as backup, and Bluetooth locks draw more power, so batteries last less time. The plastic card is not finished yet.
Frequently asked questions
Do hotel key cards store your personal information?
No. They hold a room identifier, a validity window and a sequence number, and on modern systems a security value proving the card was properly issued. There is no name, no address and no payment data. The rumour dates back to an incorrect police warning in the early 2000s.
Why did my hotel key card stop working?
Most often it was encoded with the wrong checkout time, or your stay was extended without re-encoding. Other causes are a scratched stripe, a cracked antenna inside a tap card, a lock with a failing battery, or a lock whose clock has drifted out of step with reception.
Can my phone demagnetise a hotel key card?
An ordinary phone, no. A phone with a magnetic attachment ring, or a magnetic wallet case, genuinely can erase a magnetic stripe. Cards you tap rather than swipe contain a chip and cannot be affected by magnets at all.
Does the old guest’s card still open the room?
Until you use yours, usually yes. The lock invalidates the previous sequence number the first time it sees a higher one, which happens when the new guest opens the door for the first time rather than at checkout.
Are hotel locks secure?
Reasonably, but they are offline devices that cannot be patched remotely. Serious flaws in widely used lock brands were disclosed in 2012 and again in 2024, and fixing millions of doors takes years. Practical room security still depends more on the deadbolt and the door being properly closed.
Should I hand my key card back at checkout?
Only to be helpful, since hotels reuse them. There is nothing on the card worth protecting, and it stops working as soon as the next guest opens the door.
We explain the everyday technology hiding in plain sight. Get the next one by email, or browse our coverage of RFID in hospitality.

