Convert files to data: URLs
Find a file
Laptop Kitty 5cbd5621da
Some checks failed
Test executable / test (push) Has been cancelled
remove files for the dead Drone CI instance
2026-01-24 15:19:22 -08:00
.forgejo/workflows Update .forgejo/workflows/crates-publish.yml 2026-01-04 14:44:03 -08:00
src detect if path is directory 2025-08-26 16:31:19 -07:00
.gitignore remove files for the dead Drone CI instance 2026-01-24 15:19:22 -08:00
Cargo.lock remove files for the dead Drone CI instance 2026-01-24 15:19:22 -08:00
Cargo.toml detect if path is directory 2025-08-26 16:31:19 -07:00
LICENSE Initial commit 2025-05-27 22:27:22 -07:00
README.md remove files for the dead Drone CI instance 2026-01-24 15:19:22 -08:00

dataurlify

Convert files to data: URLs

Demonstration Video

Examples

It's as easy as

dataurlify file.txt

The data url will be stored in file.txt.data.txt


To convert multiple files

dataurlify image1.png image2.jpg

The data urls will be stored in image1.png.data.txt and image2.jpg.data.txt


To bulk convert files

dataurlify *.png

The data urls will be stored in *.png.data.txt where *.png is all the png files the shell can find in the directory.


To bulk convert files (with subfolder scanning)

dataurlify folder -r

The data urls will be stored as [name].data.txt inside that directory unless -o is specified.