Base64 Encoder
Instantly export, optimise, and convert SVGs to base64 for CSS and HTML 🚀
Plugin Preview
About this plugin
A Figma plugin that streamlines the process of using SVGs in web projects by automating the export, optimisation, and conversion to base64-encoded data URIs for both CSS and HTML.
Overview
If you've ever needed to embed SVGs directly in your code, you know the process can be tedious:
- Export the SVG from Figma
- Optimise it with a tool like SVGO
- Convert it to base64
- Format it properly for CSS or HTML
This plugin automates the entire workflow with a single click. Select any frame or element in Figma and instantly copy optimised, base64-encoded SVGs ready to use as:
HTML <img>
tags
CSS background-image
properties
CSS mask-image
properties (with customisable colours)
When to Use Base64-Encoded SVGs
Base64-encoded SVGs are particularly useful for:
- Email templates where external images may be blocked or filtered
- CSS backgrounds and decorative elements when you want to avoid additional HTTP requests
- Custom list markers that need to maintain consistency across email clients
- Icon systems where you need a small number of icons without the overhead of an icon font
- Mask images in CSS when you need a shape with a customisable fill colour
- Offline applications or environments with limited connectivity
- Performance optimisation for small, frequently used graphics
In these scenarios, embedding SVGs directly in your code eliminates HTTP requests, avoids CORS issues, and ensures visual elements display correctly regardless of external resource availability.
Plugin Details
Version | 1 |
---|---|
Created | March 21, 2025 |
Last Updated | March 21, 2025 |
Category | Software development |
Creator | James Medd |
Stats | 8 installs, 1 likes |
Pricing | Free |
Technical Details
- API:1.0.0
- UI:ui.html
- main:main.js
- Document Access:dynamic-page
- Editor Types:figma
- Allowed Domains:
- http://localhost:6032Dev
- none
- ws://localhost:9001Dev
More Like This
Discover other plugins in the Software development category.