# javierbyte/img2css

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

Repository: https://github.com/javierbyte/img2css
Canonical: https://ross.abutalabs.com/products/img2css
Homepage: https://javier.xyz/img2css
Language: JavaScript
License: BSD-3-Clause
License Family: permissive
Topics: pixel-art, css, frontend, javascript, img2css, design-tool, design, react
Last push: 2026-08-23T16:32:40+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 3974, "days_push": 10, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2498, forks 187 (observed 2026-08-28T04:06:56.821012+00:00)

## What it is
A web tool that converts any image into pure CSS, recreating it as a matrix of box-shadows on a single pixel div or as a base64-embedded image. It runs as a static site where users drop an image and get copy-pasteable CSS output.

## Use cases
- convert an image to pure css
- recreate a pixel art image using only box-shadows
- embed an image without external hosting using base64
- generate css art from a photo
- turn an image into a single div with box-shadow pixels

## When to choose
- you want a novelty CSS-only image representation with no img tag or background-image
- you need a quick base64-embedded image snippet without external hosting
- you are experimenting with CSS art or pixel-level rendering

## When to avoid
- you need production-ready image embedding, since box-shadow output can be enormous
- you need programmatic conversion at scale rather than a one-off web tool
- you need optimized or compressed image delivery

## Facets
- artifact type: application
- maturity: active
- function: image-processing, css-framework, developer-tools
- domain: web-development, frontend, image-processing, web-design
- platform: browser
- tags: css-art, box-shadow, pixel-art, base64-embedding, design-tool, react, web, javascript

## Member repositories
- javierbyte/img2css (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:56.821012+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:27:02.906646+00:00, confidence not recorded.
  - readme: https://github.com/javierbyte/img2css (fetched 2026-08-28T04:06:56.821012+00:00, sha 1d3c6664b628)
  - homepage: https://javier.xyz/img2css (fetched 2026-08-29T10:09:19.463007+00:00, sha af044faffdfc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
