Skip to content

Encode Decode Image to data URL

Amadej Glasenčnik edited this page Dec 23, 2023 · 1 revision

Encode/Decode Image to data:URL

HTML and CSS allows you to embed external resources right into base using data:URL scheme. Usually, image conversion to base64 is done with external on-line services or third-party assets builder.

But these tools have downsides: you have to spend extra time on on-line tools or lose control on images that should or should not be converted to base64.

With Emmet, you can convert image to data:URL right in your editor, as well as convert it back to external file.

Encoding/Decoding is invoked by pressing: Ctrl + Shift + I