<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/protecting-your-email-address-via-svg-instead-of-js-56ssepkph" -->

---
title: Protecting your email address via SVG instead of JS
description: Learn how to protect your email address using an SVG-based approach that doesn&#x27;t require JavaScript. This technique allows the email address to remain usable...
canonical: https://daily.dev/posts/protecting-your-email-address-via-svg-instead-of-js-56ssepkph
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Protecting your email address via SVG instead of JS | daily.dev
og:description: Learn how to protect your email address using an SVG-based approach that doesn&#x27;t require JavaScript. This technique allows the email address to remain usable...
og:url: https://daily.dev/posts/protecting-your-email-address-via-svg-instead-of-js-56ssepkph
og:image: https://api.daily.dev/og/posts/56SsEpKph.png
og:image:alt: Protecting your email address via SVG instead of JS
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Protecting your email address via SVG instead of JS

**[Hacker News](https://daily.dev/sources/hn)** · 4 min read · 28 upvotes · 2 comments

## Summary

Learn how to protect your email address using an SVG-based approach that doesn't require JavaScript. This technique allows the email address to remain usable and accessible even with JavaScript turned off.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://rouninmedia.github.io/protecting-your-email-address-via-svg-instead-of-js/>

## Community discussion

Top comments from developers on daily.dev.

**@yaireo** · 0 upvotes

> this isn't the 90s any more. emails should be "protected" by the email service provider which should screen spam automatically.

**@xghozt** · 0 upvotes

> This is useless, bots can just as easily view the svg source or convert images to text. Also, the idea that you even have to obscure your email is antiquated. If it's a concern, get better mail hosting, or use a secure form.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#css](https://daily.dev/tags/css), [#html](https://daily.dev/tags/html), [#svg](https://daily.dev/tags/svg)

[View this post on daily.dev](https://daily.dev/posts/protecting-your-email-address-via-svg-instead-of-js-56ssepkph)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Protecting your email address via SVG instead of JS","url":"https://daily.dev/posts/protecting-your-email-address-via-svg-instead-of-js-56ssepkph","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/protecting-your-email-address-via-svg-instead-of-js-56ssepkph"},"datePublished":"2024-05-13T08:01:22.670Z","dateModified":"2024-05-13T08:01:21.875Z","description":"Learn how to protect your email address using an SVG-based approach that doesn't require JavaScript. This technique allows the email address to remain usable...","image":"https://media.daily.dev/image/upload/s--2-1xRawN--/f_auto/v1722860399/public/Placeholder%2011","thumbnailUrl":"https://media.daily.dev/image/upload/s--2-1xRawN--/f_auto/v1722860399/public/Placeholder%2011","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/protecting-your-email-address-via-svg-instead-of-js-56ssepkph","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":28},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"javascript,css,html,svg","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"Protecting your email address via SVG instead of JS"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/protecting-your-email-address-via-svg-instead-of-js-56ssepkph","comment":[{"@type":"Comment","text":"this isn’t the 90s any more. emails should be “protected” by the email service provider which should screen spam automatically.","datePublished":"2024-08-12T06:59:11.067Z","url":"https://daily.dev/posts/56SsEpKph#c-JEPALSLmz","author":{"@type":"Person","name":"Yair Even Or","url":"https://daily.dev/yaireo","image":"https://avatars.githubusercontent.com/u/845031?v=4"}},{"@type":"Comment","text":"This is useless, bots can just as easily view the svg source or convert images to text. Also, the idea that you even have to obscure your email is antiquated. If it’s a concern, get better mail hosting, or use a secure form.","datePublished":"2024-08-15T03:37:54.181Z","url":"https://daily.dev/posts/56SsEpKph#c-nV2zwFhmL","author":{"@type":"Person","name":"XGhozt","url":"https://daily.dev/xghozt","image":"https://avatars.githubusercontent.com/u/5670495?v=4"}}]}
```

