---
title: "Discussion on \"How to Convert an Image to Base64 (Data URLs): When It Helps and When It Hurts\" | Hashnode"
description: "Discussion on \"How to Convert an Image to Base64 (Data URLs): When It Helps and When It Hurts\". A data URL lets you embed a file's contents directly in your HTML or CSS instead of linking to a separate file. Images encoded as Base64 are the classic example. It can save a network request, but it"
url: "https://hashnode.com/posts/how-to-convert-an-image-to-base64-data-urls-when-it-helps-and-when-it-hurts/6ab8c6ef584b0beabd544e43"
---

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

Discussion

# [How to Convert an Image to Base64 (Data URLs): When It Helps and When It Hurts](https://pulkitgovrani.hashnode.dev/how-to-convert-an-image-to-base64-data-urls-when-it-helps-and-when-it-hurts?utm_source=hashnode&utm_medium=feed)

A data URL lets you embed a file's contents directly in your HTML or CSS instead of linking to a separate file. Images encoded as Base64 are the classic example. It can save a network request, but it

Sep 27 · 3 min read · pulkitgovrani.hashnode.dev  
Read the article

## Written by

[Pulkit Govrani](https://hashnode.com/@PG2002)

@PG2002

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

Want to make Coding easier to learn :)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
