Hide your Email Address with the help of Facebook

Published in: Email - Facebook - Software Hacks - spam

You probably know that Facebook uses an image format to display email addresses on profile pages.

While most people use this technique to protect their email addresses from spam bots, Facebook converts addresses into images for a completely different reason. They want to prevent their own users from exporting email addresses of their own friends out of the Facebook wall (through scrapping).

Use Facebook-generated Email Images outside Facebook

If you right-click and copy the web address of any email image inside Facebook, the URL would be something like this:


where ABCD1234 is a unique string that is different for every email address and 8.7 is the font size that is used while rendering the image.

What’s interesting here is Facebook doesn’t require authentication for these URLs.

That means you can directly mention these image addresses in your Twitter messages, in online forums or any other public web pages where you are worried about mentioning your email address in plain text as spam bots might harvest them for the purpose of spamming you.

So the next time someone wants my email address on Twitter, I can point him to this Facebook URL - http://bit.ly/my-email. If I want to embed this email address images on a web page, the code would be:

<img src="http://www.facebook.com/string_image.php?ct=ABCD&fp=20" />

You can vary the font sizes by changing the value of the fp parameter in the URL as I have done in the following examples - these are all dynamically generated images.

Related: Hide Your Email Address from Spam Bots

📮  Subscribe to our Email Newsletter for Google tips and tutorials!
Published in: Email - Facebook - Software Hacks - spam

Looking for something? Find here!

Meet the Author

Web Geek, Google Developer Expert
Amit Agarwal

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India. He is the developer of Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

Get in touch

Google Add-ons

Do more with your Gmail and GSuite account

We build bespoke solutions that use the capabilities and the features of Google Workspace for automating business processes and driving work productivity.

  1. Mail Merge with Attachments
    Send personalized email to your Google Contact with a Google Sheet and Gmail
  2. Save Emails and Attachments
    Download email messages and file attachments from Gmail to your Google Drive
  3. Google Forms Email Notifications
    Send email notifications to multiple people when a new Google Form is submitted
  4. Document Studio
    Create beautiful pixel perfect documents merging data from Google Sheets and Google Forms
  5. Creator Studio for Google Slides
    Turn your Google Slides presentations into animated GIFs and videos for uploading to YouTube