# postcss-url

> PostCSS plugin to rebase, inline or copy the files in url()

Source: https://talira.ai/catalog/postcss-url-xckejdzh
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [frontend / css / transformers](https://talira.ai/categories/frontend/css/transformers), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^3]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^2]
- Backed by: [PostCSS](https://talira.ai/orgs/postcss-org.md)

postcss-url is a [PostCSS](https://talira.ai/catalog/postcss-hhcseckv.md) plugin that rewrites the assets referenced in CSS url() values. It can rebase relative paths to the output file's location, inline images and SVGs as data URIs, or copy the files into an assets folder, optionally with content-hash names.

## Links

- GitHub: https://github.com/postcss/postcss-url

## Problems it solves

- fix broken image paths in CSS after bundling it into another folder
- inline small images into my CSS as data URIs
- copy the images my CSS references into the build output

## Features

- rebase relative url() paths to the output file
- inline images as base64 and SVGs as URI-encoded data URIs
- copy referenced assets to an output folder, with hashed names

## Limitations

- Version 10 needs Node.js 22 or newer and PostCSS 8.[^1]

## Trust

Overall: 0.39 out of 1.
Signals: maintenance 0.46, adoption 0.52, momentum 0.17, community 0.65, backing 0.30, extensibility 0.00.

- last commit 41 days ago
- 2 commits in the last 90 days
- latest release 10.1.4 6 months ago
- 382 GitHub stars
- 42 contributors
- backed by PostCSS

## Related

- Works with [PostCSS](https://talira.ai/catalog/postcss-hhcseckv.md)

## Sources

[^1]: https://github.com/postcss/postcss-url/blob/master/package.json (checked 29 Nov 2026)
[^2]: https://github.com/postcss/postcss-url/blob/master/README.md (checked 29 Nov 2026)
[^3]: https://github.com/postcss/postcss-url/blob/master/LICENSE (checked 29 Nov 2026)
