Olson CloudWorks 🚀

How do I remove the blue styling of telephone numbers on iPhoneiOS

September 19, 2026

📂 Categories: Html
How do I remove the blue styling of telephone numbers on iPhoneiOS

Have you ever noticed how phone numbers automatically turn blue and become clickable links on your iPhone or iPad? While this feature is incredibly convenient for quickly dialing a number, it can sometimes be undesirable, especially when you’re displaying numbers in a specific context, like within a design layout, a document, or a specific website format. The automatic formatting can clash with your intended presentation, disrupt the visual harmony of your content, or even create unintended clickable elements in places where you don’t want them. Learning how to remove the blue styling of telephone numbers on iPhone/iOS is a simple yet powerful skill that gives you more control over how your content appears on Apple devices. This guide will walk you through different methods to achieve this, ensuring your phone numbers are displayed exactly as you intend, without the automatic blue styling and linking.

Understanding Automatic Telephone Number Formatting in iOS

iOS devices are designed with user experience in mind, and the automatic formatting of telephone numbers is a part of that. The operating system detects strings of digits that resemble phone numbers and automatically converts them into clickable links. This is achieved through data detectors, a system-level feature that identifies various types of data, including dates, addresses, and, of course, phone numbers. When a phone number is detected, iOS applies a default blue color and underlines the text, indicating that it can be tapped to initiate a call. This is generally useful, but sometimes it’s necessary to disable or override this behavior. According to Apple’s developer documentation, data detectors can be controlled, but the specific methods vary depending on the context in which the numbers are displayed. Apple Developer Documentation offers extensive information on managing data detection features.

The way iOS handles this formatting can also depend on the application you’re using. For instance, web browsers, email clients, and text editors might render phone numbers differently based on their own internal settings or the underlying HTML or text formatting. In some cases, a simple CSS rule or a specific HTML tag can prevent the automatic styling. In others, you might need to resort to more complex workarounds, such as inserting zero-width spaces or using images instead of plain text. Understanding these nuances is crucial for effectively controlling how phone numbers appear across different platforms and applications on your iOS device.

Consider a scenario where you’re designing a mobile website for a client. The website includes a company contact page with phone numbers listed. However, the blue linked phone numbers clash with the site’s color scheme and overall design. You need to find a way to display the phone numbers without the default blue styling, ensuring they remain readable but not clickable. This is a common situation where knowing how to remove the default formatting becomes essential. This is where understanding the various methods below comes into play.

Methods to Remove Blue Styling From Phone Numbers

There are several ways to remove the blue styling from phone numbers on iOS, each with its own advantages and disadvantages depending on the context. The most effective method will depend on whether you’re working with HTML, plain text, or another type of document. Let’s explore some of the most common techniques:

  • Using HTML Meta Tags: This is often the most straightforward approach for web pages.
  • CSS Styling: Applying CSS rules can override the default blue color and underline.
  • Zero-Width Spaces: Inserting invisible characters can break the phone number pattern recognition.

Featured Snippet: For web developers, the most reliable way to prevent automatic phone number linking is to use the following meta tag within the

section of your HTML document: . This tag instructs iOS to disable automatic phone number formatting on the entire page. This approach offers a global solution for all phone numbers on the page, ensuring consistent behavior across different iOS devices and browsers. ### Using HTML Meta Tags

The tag is your first line of defense against unwanted phone number styling in HTML documents. By including this tag within the

section of your HTML, you’re essentially telling iOS to ignore any phone number patterns on the page and not automatically convert them into clickable links. This method is highly effective and requires minimal effort. However, it’s an all-or-nothing approach; it disables phone number formatting for the entire page, so it’s best suited for situations where you want to prevent automatic linking across the board. If you need more granular control, consider using CSS styling or other methods. To implement this, simply add the following line to your HTML’s

section: . Ensure that the tag is correctly placed within the tags for it to work properly. After adding this meta tag, refresh the page on your iOS device to see the changes. The phone numbers should now appear as plain text without the default blue styling and underlining. This is especially useful for landing pages or web applications where you want to control the user experience completely. For example, imagine you have a website displaying product specifications that include phone numbers for support. The blue links might be distracting and detract from the product information. Using the meta tag ensures that the phone numbers are displayed as plain text, maintaining a clean and professional look. Remember to test your implementation on different iOS devices and browsers to ensure consistent behavior.

CSS Styling

Another effective method to remove the blue styling is to use CSS (Cascading Style Sheets). This approach allows for more granular control over the appearance of phone numbers, enabling you to change the color, remove the underline, and even prevent the number from being clickable while still allowing other links on the page to function normally. CSS styling is particularly useful when you want to customize the appearance of phone numbers without completely disabling the automatic linking feature.

To implement CSS styling, you can use inline styles, internal stylesheets, or external stylesheets. The most common approach is to use a CSS rule that targets the tag with the href attribute starting with “tel:”. This allows you to specifically target phone number links without affecting other links on the page. For instance, you can use the following CSS rule: a[href^=“tel:”] { color: inherit; text-decoration: none; pointer-events: none; cursor: default; }. This rule sets the color to inherit (so it takes on the color of the surrounding text), removes the underline, disables the link’s interactivity, and changes the cursor to the default style.

Consider a scenario where you want to display a phone number in a specific color that matches your brand’s identity. Using CSS, you can easily override the default blue color and set it to your desired color. Furthermore, if you want the phone number to be displayed as plain text but still allow users to copy and paste it, you can simply remove the pointer-events: none; and cursor: default; properties from the CSS rule. This gives you complete control over the appearance and behavior of phone numbers on your iOS device. Mozilla Developer Network provides comprehensive CSS documentation.

Using Zero-Width Spaces

A more unconventional but sometimes necessary method involves inserting zero-width spaces within the phone number string. Zero-width spaces are invisible characters that don’t affect the visual appearance of the text but can disrupt the pattern recognition algorithms used by iOS to detect phone numbers. By inserting these spaces strategically, you can prevent the operating system from automatically formatting the number into a clickable link.

To implement this technique, you can insert a zero-width space (Unicode character U+200B) between the digits of the phone number. For example, instead of displaying “1234567890”, you would display “123&x200B;456&x200B;7890”. The zero-width spaces are invisible to the user but prevent iOS from recognizing the string as a phone number. This method is particularly useful when you have limited control over the HTML or text formatting, such as in certain content management systems or email clients.

While this method can be effective, it’s important to note that it might not be foolproof. iOS updates and browser updates could potentially change the way phone numbers are detected, rendering this technique ineffective. Additionally, inserting zero-width spaces can make it more difficult for users to copy and paste the phone number, as they might accidentally copy the invisible characters along with the digits. Therefore, it’s essential to weigh the pros and cons before using this method. This technique is more like a last-resort option when other methods fail.

Practical Examples and Use Cases

Let’s dive into some practical examples and use cases to illustrate how these methods can be applied in real-world scenarios. Understanding these examples will help you choose the most appropriate technique for your specific needs. The key is to consider the context in which the phone number is being displayed and the level of control you have over the underlying code or formatting.

Example 1: E-commerce Website: An e-commerce website displays customer service phone numbers on its contact page. The default blue styling clashes with the website’s design. The website owner can use the tag to disable automatic phone number formatting across the entire page, ensuring a consistent look and feel. This is a simple and effective solution for maintaining a clean and professional appearance.

Example 2: Email Newsletter: An email newsletter includes a phone number for a special promotion. The email marketer wants to display the number as plain text to avoid any confusion or accidental clicks. The marketer can insert zero-width spaces within the phone number string to prevent automatic formatting. This method is particularly useful when the email client doesn’t allow for custom CSS styling or HTML meta tags. Also, you can find more about email specific workarounds on Campaign Monitor’s blog.

Example 3: Mobile Application: A mobile application displays phone numbers in a list view. The developer wants to customize the appearance of the phone numbers to match the app’s theme. The developer can use CSS styling to override the default blue color and underline, creating a seamless and visually appealing user experience. This approach allows for granular control over the appearance of phone numbers within the app.

Infographic here showcasing the different methods to remove blue styling from phone numbers on iOS.
Troubleshooting Common Issues -----------------------------

Even with the right techniques, you might encounter some issues when trying to remove the blue styling from phone numbers on iOS. Here are some common problems and their solutions:

  • Meta Tag Not Working: Ensure the meta tag is placed correctly within the section of your HTML document. Also, clear your browser cache and refresh the page to see the changes.
  • CSS Styling Not Applying: Check the specificity of your CSS rules. Make sure your rules are specific enough to override the default styling. Use the browser’s developer tools to inspect the element and identify any conflicting styles.
  • Zero-Width Spaces Not Effective: iOS updates might change the way phone numbers are detected. Try inserting the zero-width spaces at different locations within the phone number string.

Sometimes, the issue might not be with the phone number formatting itself, but with the way the content is being rendered. For example, if you’re using a content management system (CMS), the CMS might be automatically formatting phone numbers regardless of your efforts to disable it. In such cases, you might need to adjust the CMS settings or use a plugin to control the phone number formatting. Remember to test your changes on different iOS devices and browsers to ensure consistent behavior. If all else fails, consult with a web developer or designer for assistance.

Another common issue is related to caching. Browsers often cache web pages to improve performance, which means that changes you make to your HTML or CSS might not be immediately reflected on the page. To resolve this, try clearing your browser cache or using a hard refresh (Ctrl+Shift+R or Cmd+Shift+R) to force the browser to download the latest version of the page. This will ensure that your changes are properly applied and that the phone numbers are displayed as intended. You can also use our guide on SEO best practices for more troubleshooting tips.

FAQ: Removing Blue Styling of Telephone Numbers on iPhone/iOS

**Q: Why are my phone numbers automatically turning blue on my iPhone?**
A: iOS has a feature called data detection that automatically recognizes phone numbers and formats them as clickable links, making them blue and underlined.
**Q: How can I disable this automatic formatting on a website?**
A: The most effective way is to use the meta tag in the section of your HTML document.
**Q: Will this meta tag affect other links on my website?**
A: No, this meta tag specifically targets phone number formatting and will not affect other links.
**Question & Answer :** Is there a way to remove the default blue hyperlink colour from a telephone number when viewed on an iPhone? Like a specific Mobile Safari tag or CSS to add?

I only have this in place for the number:

<p id="phone-text">Call us on <strong>+44 (0)20 7194 8000</strong></p> 

And there are no hyperlinks but iPhone still renders this text number as a hyperlink. I have this rendering issue on some of my websites but can’t see why this is occurring.

I did read this post:

Mobile HTML rendering numbers

But is that the only solution possible?

Two options…

  1. Set the format-detection meta tag. =======================================

To remove all auto-formatting for telephone numbers, add this to the head of your html document:

<meta name="format-detection" content="telephone=no"> 

View more Apple-Specific Meta Tag Keys.

Note: If you have phone numbers on the page with these numbers you should manually format them as links:

<a href="tel:+1-555-555-5555">1-555-555-5555</a> 

  1. Can’t set a meta tag? Want to use css? ===========================================

Two css options:


Option 1 (better for web pages)

Target links with href values starting with tel by using this css attribute selector:

a[href^="tel"] { color: inherit; /* Inherit text color of parent element. */ text-decoration: none; /* Remove underline. */ /* Additional css `propery: value;` pairs here */ } 

Option 2 (better for html email templates)

Alternatively, you can when you can’t set a meta tag—such as in html email—wrap phone numbers in link/anchor tags (<a href=""></a>) and then target their styles using css similar to the following and adjust the specific properties you need to reset:

a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; font-size: inherit !important; font-family: inherit !important; font-weight: inherit !important; line-height: inherit !important; } 

If you want to target specific links, use classes on your links and then update the css selector above to a[x-apple-data-detectors].class-name.