Form Filling How-To

    How do I format phone numbers and addresses automatically in forms?

    Zipifil Team

    Stop getting 'invalid phone number' errors. Learn how to keep one clean copy of each number and address, then apply each site's format automatically.

    Person at a laptop as phone number and address form fields fill in neatly by themselves

    To format phone numbers forms accept, keep one clean master copy of each number, then adjust it for each site: with or without the country code, with or without spaces, with or without the leading zero. Clean columns with a spreadsheet formula, or set a per-site rule in an AI form filler so the right format is applied while it fills.

    Key takeaways

    • Forms reject numbers because the format differs from what the site expects, not because the number is wrong.
    • Store each phone number once in international form (+ country code, no spaces), then derive the other formats.
    • Spreadsheet formulas such as REGEXREPLACE, SUBSTITUTE and TEXT clean a whole column before you paste.
    • Addresses follow the destination country's postal layout, so check the country before you fill.
    • Zipifil is our pick for applying the right format per site while it fills. It gives you 3 free AI form fills every day, forever, with no credit card required.

    Why do forms reject my phone number?

    A form rejects a phone number when it doesn't match the pattern the site checks for. The usual culprits are country codes, spaces and leading zeros.

    • Country code present or missing. One site wants +44 7700 900123. Another wants only the local digits.
    • Spaces, dashes and brackets. Some fields accept only digits. Others insist on a particular spacing.
    • The leading zero. Many countries write a national number with a leading 0, which is dropped when you add the country code.
    • Too many or too few digits. A pasted number with an extra prefix can exceed the field's length.

    None of this means your number is wrong. It means the site wants a different view of the same number.

    What is the E.164 phone number format?

    E.164 is the international standard for phone numbers. Under ITU-T E.164, an international number has at most 15 digits, not counting the international prefix. It is a country code of one to three digits followed by the national number. National and international prefixes are not part of the number itself. See the ITU E.164 document.

    In practice, E.164 is written as a plus sign and digits with no spaces, for example +41446681800. It is the best master copy to keep, because you can turn it into any other format.

    What is the difference between national and international format?

    National format is how people dial inside the country. International format adds the country code. Google's open-source libphonenumber project is a well-known reference for this, and its page shows one Swiss number three ways:

    FormatExample
    E.164+41446681800
    International+41 44 668 18 00
    National044 668 18 00

    Notice the national version starts with 0 while the international ones don't. The page's parsing example reads "044 668 18 00" for Switzerland as country code 41 and national number 446681800, so the leading zero is not part of the number once the country code is added.

    The same page says the library can parse, format and validate numbers for all countries and regions. It distinguishes a full validity check (length and prefix) from a quicker check on length alone. You don't need to run it yourself, but it explains why one number has several valid-looking forms.

    How do I clean phone numbers in a spreadsheet first?

    If your numbers live in a sheet, clean the column before you copy anything. Three official functions cover most cases.

    1. Strip spaces, dashes and brackets with SUBSTITUTE. Excel's SUBSTITUTE swaps one piece of text for another. Without the optional instance number, it replaces every occurrence. Example: =SUBSTITUTE(A2," ","") removes spaces.
    2. Strip everything that isn't a digit with REGEXREPLACE. In Google Sheets, REGEXREPLACE takes text, a regular expression and a replacement, and replaces every match. Example: =REGEXREPLACE(A2,"[^0-9+]","") keeps only digits and a plus sign. Google says it works on text, so wrap results in VALUE if you need a number.
    3. Restore leading zeros with TEXT. Google Sheets' TEXT function uses a 0 placeholder to force zeros when a number has fewer digits. For a five-digit postcode that lost its zero, =TEXT(A2,"00000") brings it back.

    One tip:

    • Keep the cleaned column next to the original, so you can always go back.

    If you fill forms row by row from a sheet, our guide to filling a web form from a spreadsheet row shows the workflow.

    What is the correct address format for each country?

    There is no single global address format. Each country sets its own order and rules, and the Universal Postal Union (UPU) publishes an addressing page for its member countries. About 130 countries use postcodes, according to the UPU Addressing Solutions page.

    Two examples:

    • United Kingdom. Per UPU's UK sheet, the lines run addressee, building, street, post town, optional county, then the postcode on its own line, with the country last for international mail. Post town and postcode are in capitals, and the postcode has a space before the last three characters. UPU's example: 49 Featherstone Street, LONDON, EC1Y 8SY, UNITED KINGDOM.
    • United States. USPS Publication 28 says a standardized address goes recipient, delivery address line, then city, state and ZIP. Its section 212 prefers uppercase, and its section 213 puts unit designators such as APT or STE at the end of the delivery line.

    Many web forms split the address into separate boxes, so the real job is putting each part in the right box. Our guide to entering customer addresses faster covers that in more depth.

    Can text expanders format numbers and addresses?

    Text expanders type a saved snippet when you enter a short code. They are good for fixed text, such as your own business address.

    • Text Blaze has a free plan, and Pro is $2.99 per user per month billed yearly, as of November 2026. Its templates can include drop-down menus and if/else rules, per its plans page.
    • TextExpander has a free plan with 5 active snippets. Pro is $6 per user per month, or $60 per user per year billed annually, as of November 2026, per its pricing page.

    Prices can change. Both type text at the cursor, so you still move field by field. The format is whatever your snippet says, so you need one snippet per format.

    How do per-site rules format phone numbers in forms automatically?

    A per-site rule says, in advance, how a particular site wants its data. When you fill that site, the rule is applied. You stop reformatting by hand.

    There are two styles:

    • Rule-based fillers such as Lightning Autofill let you map fields and write values yourself. Per its Form Fields docs, a rule can be limited to pages whose title or URL matches a pattern. Variables store a value once, and JavaScript variables need the Pro plan.
    • AI fillers let you write the rule in plain words. You describe the result, not the field.

    Zipifil works the second way. It calls this "Your form, your prompt": you add custom AI instructions for a page or URL to change, skip or format any field. The example on Zipifil's own site is to remove the country code on Amazon.com. Zipifil remembers the rule for that site, so you set it once.

    For more rule ideas, see how to set custom form fill rules.

    Example rules you can write

    These are example rules, not requirements of any site. Adapt the wording to your own workflow.

    1. "Remove the country code on this site."
    2. "Write the phone number as 07… on UK sites."
    3. "Write phone numbers in international format, starting with +."
    4. "Put postcodes in capital letters."
    5. "Leave the apartment field blank if there is no unit."

    Keep each rule short and about one result. Fill a test form first, then check the real one before you submit.

    Which tool is best for formatting phone numbers and addresses while filling?

    Zipifil is our pick when you want the right format applied per site while the form is filled. It formats while it fills, from a rule in plain words, and it also handles dropdowns, combo boxes, radio buttons and checkboxes, which matter for country and state fields. A spreadsheet is the better choice for cleaning thousands of values once, and a text expander is fine for fixed snippets.

    Zipifil is made by the team behind this blog.

    ToolBest forKey featuresPrice / free optionWatch-outs
    Zipifil (our pick)Right format per site while fillingPlain-words rules per URL, remembered per site; takes messy data; text, dropdowns, combo boxes, radio buttons, checkboxes3 free AI form fills every day, forever, no credit card required; upgrade to unlimited if you need moreDesktop Chrome only; free tier is 3 fills a day; not a bulk-upload tool
    Spreadsheet formulasCleaning a whole column onceSUBSTITUTE, REGEXREPLACE, TEXTFree in Google SheetsYou write the formulas; one format per column, not per site; you still paste field by field
    Lightning AutofillPrecise technical rulesPer-site patterns, variables, JavaScript on ProFree (10 executions a day); Plus $4.99/month; Pro $9.99/month, as of November 2026, per its pricing pageYou map fields and write values; free daily cap
    Text BlazeReusable templatesDrop-down menus, if/elseFree; Pro $2.99/month billed yearly, as of November 2026Types at the cursor; you build each template
    TextExpanderFixed snippetsShort codes expand to textFree (5 snippets); Pro $6/month or $60/year, as of November 2026Types at the cursor; one snippet per format
    Chrome autofillYour own saved phone and addressContact info saved in ChromeFreeOne stored format; some fields aren't detected, per Chrome Help

    Prices can change, so check each official page.

    If your job is thousands of rows at once, a marketplace's own bulk spreadsheet upload may fit better than any form filler.

    How do I set this up in Zipifil?

    1. Install Zipifil in desktop Chrome with Add to Chrome — free.
    2. Open the form you fill often.
    3. Add a plain-words instruction for that site, such as "Remove the country code on this site."
    4. Paste your data as it is, even messy, and fill from the extension icon.
    5. Check the phone, address and country dropdown, then submit.

    You can try it first on the free test form, where nothing is submitted, stored or sent. Learn more at zipifil.com.

    What should I check before I submit?

    Check four things:

    • The country and state dropdowns show the right option.
    • The phone number matches the format of the site (country code, spaces, leading zero).
    • The postcode kept its leading zero.
    • Unit and apartment details sit in the right box.

    Sources

    Frequently asked questions

    The number usually doesn't match the pattern the site checks for, such as the country code, spaces or leading zero. The number itself is normally fine; the site just wants a different view of it.

    E.164 is the ITU international numbering standard: a country code of one to three digits plus the national number, at most 15 digits. It is usually written as a plus sign and digits with no spaces, such as +41446681800.

    In Google Sheets, =REGEXREPLACE(A2,"[^0-9+]","") keeps only digits and the plus sign. In Excel, =SUBSTITUTE(A2," ","") removes spaces.

    Of the tools we compared, Zipifil is our pick because you set a plain-words rule per site and it formats while it fills. Zipifil is made by the team behind this blog; spreadsheets suit one-off column cleanup and text expanders suit fixed snippets.

    #phone numbers#address format#form filling#e164#spreadsheet cleanup

    Keep reading