πŸ–ΌοΈ
🎨

Inline an Image in CSS

Embed a small icon or background as a data URI in your stylesheet.

Nid oes angen mewngofnodiMae ffeiliau'n aros yn breifat

Gollwng ffeiliau yma, neu cliciwch i bori

PNG, JPG, WebP, GIF, SVG, AVIF, X, Image dim cyfyngiad maint ffeil

Pori ffeiliau

Nid yw eich ffeiliau byth yn gadael eich dyfais. Mae'r holl brosesu yn digwydd yn lleol yn eich porwr.

Convert an image to a Base64 data URI you can paste directly into CSS, HTML, or Markdown β€” no separate file needed. Encoded in your browser; never uploaded.

CSS tips

🎨

The CSS snippet gives you a ready background-image: url(...) with the data URI inlined.

⚑

Inlining a small icon removes an HTTP request, which can speed up first paint.

πŸ“

Keep it to small images β€” Base64 is ~33% larger, so big images bloat your CSS.

πŸ”’

Encoded in your browser β€” never uploaded.

Sut Mae'n Gweithio

1
Dewiswch Ffeil
Drop your file into the tool above. It stays entirely on your device β€” nothing is sent to any server.
2
Proses
The tool processes your data instantly in your browser using JavaScript. No server, no waiting.
3
Lawrlwythwch
Get your result instantly. Nothing is stored after you leave the page β€” complete privacy.

Pam defnyddio ein un ni?

βœ“Hollol rhad ac am ddim - dim costau cudd, byth
βœ“Nid oes angen cyfrif, e-bost na mewngofnodi
βœ“Nid yw ffeiliau byth yn gadael eich dyfais
βœ“Dim cyfyngiadau maint ffeil o gwbl
βœ“Dim dyfrnodau ar unrhyw allbwn

Also check out…

Cwestiynau Cyffredin