Meet Mistry
All UX laws

UX Law 30 of 30 · Principle

Postel’s Law

Be flexible in what you accept from users, and clear and consistent in what you give back.

Also called Robustness Principle.

Postel’s Law illustrated: Three ways people type a phone number, one clean result: +91 98765 43210.

You’re booking a ticket and type your mobile number the way you say it: “98765 43210”, with a space in the middle. The field turns red: “Please enter a valid mobile number.” You delete the space, try again and wonder why the app couldn’t do that itself.

The number was valid. The form was just strict about something that didn’t matter. Postel’s Law says it should have been the other way around.

What is Postel’s Law?

Postel’s Law says a system should be liberal in what it accepts and conservative in what it sends. In design, that means accepting input however people naturally type it, and giving back one clean, consistent result.

People don’t think in formats. They write dates as “5 Dec”, “05/12” or “5-12-26”. They type phone numbers with +91, with a zero, with spaces or dashes. They type names in capitals and paste emails with a stray space at the end. None of this changes what they mean, and a good product shouldn’t treat it as an error.

The second half matters as much as the first. After accepting the messy version, show the clean one back: “+91 98765 43210”, “5 Dec 2026”. People see that the product understood them, and they can catch a real mistake before it costs them.

Why it happens

Jon Postel was one of the people who built the early internet. In the 1980 specification for TCP, the protocol that still carries most of what you do online, he wrote that every program should “be conservative in what you do, be liberal in what you accept from others”. Machines from different makers sent slightly different messages, and the network worked because each one tolerated small differences in the others.

People are the same, only messier. Every time a form rejects input that any human would understand, it pushes the work of translating onto the user and makes them feel they did something wrong. Accepting variety and quietly cleaning it up is how a product comes across as patient instead of fussy.

Postel’s Law examples in real life

You have seen this many times already. A few places it shows up:

A good shopkeeper

Ask for “one kilo”, “1 kg” or “ek kilo” of onions and the shopkeeper hands over the same bag. He understands what you mean however you say it, and gives you one consistent result.

Search that guesses what you meant

Type a misspelt word into Google and it shows results for the likely spelling, with a “Did you mean” or “Showing results for” line. You don’t get an empty page for one wrong letter.

Forgiving phone number fields

Well-made forms accept a number with spaces, dashes or +91 in front, strip what they don’t need and store it in one format. The user never has to guess which version the form wants.

Dates typed in plain words

To-do apps like Todoist let you type “call Mom tomorrow at 6” and set the date and time from the words. You write the way you think; the app does the formatting.

The problem

What goes wrong when you ignore Postel’s Law

Imagine a loan app whose PAN field accepts only capital letters and says nothing about it. A user types their PAN in lowercase and sees “Invalid PAN”. They check the card, type it again carefully and get the same error. They assume the app can’t verify them and leave, a few steps from finishing an application the business paid good money to bring them to.

The common mistake

Throwing “Invalid format” at a phone number because of one space.

The solution

How to use Postel’s Law in UI/UX design

  1. 1

    Accept spaces, dashes and any case

    Clean the input before you validate it: trim spaces at the ends, remove spaces and dashes inside numbers, and convert codes like PAN, IFSC or coupons to capitals. Then check the cleaned value, not the raw one.

  2. 2

    Suggest a fix, do not just reject

    If something is still wrong, say what and how to fix it: “Mobile numbers have 10 digits. You entered 9.” For an email ending in “gmial.com”, ask “Did you mean gmail.com?” instead of refusing it.

  3. 3

    Show the cleaned value back

    Format the input as soon as people finish typing, like “+91 98765 43210” or “Sat, 5 Dec 2026”, so they can confirm it’s right. Then store and display it the same way everywhere after that.

Rule to remember

Accept messy input. Return clean output.

Try it yourself

Open a shopping or food app and search for something with a small spelling mistake, like “sandwhich” or “mobil cover”. Notice whether it understands you or shows nothing. Try the same typo in another app. In under a minute you’ll see which team has thought about Postel’s Law.

Where Postel’s Law comes from

Internet pioneer Jon Postel wrote it into the TCP specification in 1980, as the Robustness Principle: be conservative in what you send, liberal in what you accept.

Sources and further reading

  • Jon Postel (ed.), RFC 761, “DoD Standard Transmission Control Protocol”, January 1980.
  • Robert Braden (ed.), RFC 1122, “Requirements for Internet Hosts: Communication Layers”, October 1989.
  • Jon Yablonski, Laws of UX, O’Reilly Media, 2020.

Postel’s Law: questions people ask

Why is Postel’s Law also called the Robustness Principle?

Because that’s the name it was given in the TCP specification, where it appears under the heading “Robustness Principle”. The idea was that a network keeps working when each part tolerates small mistakes from the others instead of failing on them.

Should a form accept anything the user types?

No. Be flexible about format, but strict about meaning. A phone number with spaces is fine; a phone number with eight digits is not. Accept the different ways people write the same thing, then check that the result is real and show it back so they can confirm it.

Do engineers still follow Postel’s Law?

With more care than before. Engineers found that protocols which forgive too much let bad behaviour spread and can open security holes, and a 2023 document, RFC 9413, discusses these problems. In interface design the risk is smaller, because you show the cleaned value back to a person who can check it.

The Postel’s Law video is coming soon.

Found this useful? Share it with your team.

ShareWhatsAppLinkedInX

Free PDF

Postel’s Law and 29 more laws, in one free guide.

Every law in easy words, with everyday examples and one rule to remember. PDF · 33 pages · 13 MB.

Keep reading