πŸ–ΌοΈ
🎨

Inline an Image in CSS

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

Tiada log masuk diperlukanFail kekal peribadi

Lepaskan fail di sini atau klik untuk layar

PNG, JPG, WebP, GIF, SVG, AVIF, X, Image tiada had saiz fail

Layar fail

Fail anda tidak pernah meninggalkan peranti. Semua pemprosesan berlaku secara tempatan dalam pelayar anda.

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.

Cara ia berfungsi

1
Pilih fail
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
Muat turun
Get your result instantly. Nothing is stored after you leave the page β€” complete privacy.

Mengapa alat kami?

βœ“Percuma sepenuhnya β€” tiada kos tersembunyi, selama-lamanya
βœ“Tiada akaun, e-mel atau log masuk diperlukan
βœ“Fail tidak pernah meninggalkan peranti anda
βœ“Tiada had saiz fail langsung
βœ“Tiada tera air pada sebarang output

Also check out…

Soalan lazim