Learn how to use SVG in Bubble with simple steps for crisp graphics, flexible icons, and smooth performance in your web app.

Starting a new venture? Need to upgrade your web or mobile app? RapidDev builds Bubble apps with your growth in mind.
The simplest way to use SVG in Bubble is either to paste the SVG code directly into an HTML element, or to upload the SVG file as an image and display it in an Image element. If you need the SVG to be styled or dynamic (like changing colors), the HTML element method is the correct one.
Bubble does not have a special “SVG element”, so you use either the HTML element or the Image element. The choice depends on whether you need the SVG to behave like code (editable, color‑changeable) or behave like a static picture.
This is the method most Bubble developers use when they want to change fill colors, run conditions, or animate the SVG with CSS. You just copy the raw SVG code and paste it into an HTML element.
<div style="width:40px; height:40px;">
<svg viewBox="0 0 24 24" fill="#4a4a4a">
<circle cx="12" cy="12" r="10"></circle>
</svg>
</div>
You can even insert dynamic Bubble data inside the SVG if you need it, for example to change the fill color:
<svg viewBox="0 0 24 24" fill="<span style='display:none;'> </span>">
<circle cx="12" cy="12" r="10" fill='{{Parent group's color}}'></circle>
</svg>
(Bubble lets you place dynamic expressions inside HTML elements.)
If you upload the SVG file to Bubble’s File Manager, you can display it with an Image element just like PNG or JPG. Bubble serves SVGs correctly, but you cannot change their internal colors because the browser treats them as external files, not inline code.
Learn how to seamlessly integrate Bubble.io with Git through our comprehensive step-by-step guide. Perfect for beginners and professionals.
Learn how to seamlessly integrate Bubble.io with Reddit Ads using our easy step-by-step guide. Boost your ad management today!
Explore our step-by-step guide on integrating Bubble.io with AWS S3, making your app development process more efficient and secure.
Follow our step-by-step guide to seamlessly integrate Bubble.io with Lucidchart, enhancing your workflow & productivity.
Learn how to seamlessly integrate Bubble.io and Kentico with our comprehensive, easy to follow step-by-step guide.
Discover easy-to-follow steps for integrating Bubble.io with Box. Boost your workflow and secure your files seamlessly today.
Fix broken workflows | Optimize logic | Boost performance | Scale with confidence