What the Passport Office will print
HM Passport Office has its own guidance on names it can’t put in a passport. Its system accepts hyphens and apostrophes but no other symbols or punctuation. It can’t print accent marks, so a name like Zoë goes in as Zoe. And it can refuse a name that may cause outrage or offence or promote unlawful activity, such as swear words or sexually explicit words. HM Passport Office: names that cannot be used in passports
Long names. A passport has room for 30 characters, including spaces, for your forenames and 30 for your surname. If yours is longer, the Passport Office can shorten your extra names to initials, but never your first forename or first surname, and it adds a note in the passport giving your full name.
Single names. If you have only one name, the Passport Office records it as your surname, puts XXX in the first name field and adds a note that XXX isn’t part of your name. It works, but plenty of other systems insist on a first name and a surname, so most people keep both. HM Passport Office: how to show uncommon names in passports