Skip to content
I

Img2css

Convert any image to pure CSS. Recreates images using only box-shadows

by javierbyteFree

#293in Design
0In stores

Description

img2css converts any image into CSS, so the picture can be shown without an image file. It offers two outputs. The first is a pure CSS shado…

Highlights

  • Converts any image to pure CSS box-shadows
  • Base64 output that embeds the image
  • No image file or hosting needed
  • Runs in the browser on the project site
  • Static site build with pnpm

Ratings & Reviews

No ratings yet

Be the first to rate Img2css.

People also visit

C

Code to Image Converter

Convert your code snippets into beautiful shareable images

Design
Launch
P

Pixel Art React

Pixel art animation and drawing web app powered by React

Utilities
Launch
C

Colorffy

Get CSS, images, UI previews or create own gradients

Design
Launch
B

bennettfeely.com/clippy

Clip path generator

Design
Launch
P

Pixel art to CSS

Pixel art animation and drawing web app powered by React

Design
Launch
T

ToolSnippet

100% client-side CSS generators

Design
Launch

Img2css FAQ

What does img2css do?

It converts an image into CSS, either as a grid of box-shadows or as a base64 embedded image.

Is it free?

Yes. The project is open source and its code is on GitHub.

Should I use the pure CSS output in production?

The README does not recommend it for production unless there is no other option, because the output can be huge.

What is the base64 output?

The whole image file embedded inside an img tag, so the image needs no external hosting.

Is there a programmatic version?

Yes. The README points to a separate canvas image utilities project for doing the conversion in code.

How do I build the site?

Run pnpm build, which writes the static site to the out folder.

What are the best Img2css alternatives?

Popular alternatives to Img2css include Code to Image Converter, Colorffy and bennettfeely.com/clippy. See all Img2css alternatives

Developer Stuff

Badges