Licenses
Open-source licenses for the models and libraries CleanBG uses in your browser.
Last updated: 2026-09-20
CleanBG itself is a website that ships MIT-licensed machine-learning models to your browser. A few supporting libraries have their own terms. Everything listed here runs on your device; nothing is a server-side dependency.
MIT models
These weights are downloaded to your browser and remain under their original MIT licenses. See also the model credits.
- BEN2 — PramaLLC, github.com/PramaLLC/BEN2
- BiRefNet — Zheng Peng et al., github.com/ZhengPeng7/BiRefNet
- Transformers.js — Hugging Face (Apache-2.0)
- ONNX Runtime Web — Microsoft (MIT)
HEIC decoding (LGPL-3.0)
iPhone photos are often saved as HEIC. Safari can decode them natively, so this extra code never loads there.
On browsers that cannot decode HEIC, CleanBG lazily loads heic-to (LGPL-3.0). That package embeds libheif (strukturag/libheif, LGPL-3.0) and converts the file in memory in your tab. The image is not uploaded.
LGPL-3.0 is a weak copyleft license. You can:
- Read the full license text we ship at /licenses/heic-to-LGPL-3.0.txt
- Get the corresponding source for heic-to at github.com/hoppergee/heic-to and for libheif at github.com/strukturag/libheif
- Replace the library in your own copy of this site: the decoder is dynamically imported from the
heic-tonpm package and is not statically linked into the inference engine
If you never open a HEIC/HEIF file, this library is not downloaded at all.
Other notices
Icons in the interface come from Lucide (ISC). Fonts are Inter and Libre Baskerville (OFL).