---
title: "Discussion on \"Converting a SVG to URI\" | Hashnode"
description: "Discussion on \"Converting a SVG to URI\". Converting an SVG file to a data URI allows you to include the contents of an SVG file directly in your HTML, CSS, or JavaScript, rather than linking to an external file. This can be useful for small icons or graphics, or for styling an element with ..."
url: "https://hashnode.com/posts/converting-a-svg-to-uri/63a09fccb56f298a8c1098cc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Converting a SVG to URI](https://synack.hashnode.dev/converting-a-svg-to-uri?utm_source=hashnode&utm_medium=feed)

Converting an SVG file to a data URI allows you to include the contents of an SVG file directly in your HTML, CSS, or JavaScript, rather than linking to an external file. This can be useful for small icons or graphics, or for styling an element with ...

Dec 19, 2022 · 2 min read · synack.hashnode.dev  
Read the article

-   [#svg](https://hashnode.com/tag/svg)
-   [#uri](https://hashnode.com/tag/uri)
-   [#convert](https://hashnode.com/tag/convert)

## Written by

[Eirik Madland](https://hashnode.com/@SynAck)

@SynAck

  
[View profile](https://hashnode.com/@SynAck)

HTML, CSS, Javascript, NodeJS tips and tricks

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
