Uploads that just work
Drop in the browser uploader or the React component. Progress, large files and signed uploads are handled. You get back one ID.
File upload and image resizing API
File uploads, image resizing and video streaming behind one API, for web and SaaS developers. Upload a file, get an ID, serve any size or format from a URL. No buckets, no image pipeline, no ffmpeg.
Free plan, no card. Running in production for years.
Uploads, transforms, video and webhooks share one key and one dashboard.
Every transformed version is cached after the first request, so repeats are instant.
Upload the original and get HLS and DASH, a poster and a player to embed.
Signed URLs, expiring links and private videos keep files where they belong.
Try it now, no account
This runs on a real Fileboy app. Drop in an image and watch it come back resized, recoloured or converted.
Why not a bucket
File handling looks like a weekend job. It turns into a bucket, a policy, an upload signer, an image worker, a cache, a video encoder and a bill you cannot predict.
What you get
Six things you would otherwise build, test and look after. Each one works from the first request.
Drop in the browser uploader or the React component. Progress, large files and signed uploads are handled. You get back one ID.
Ask for the width, crop, format and quality you need in the image URL, add your logo or a text watermark, or get its main colours for a placeholder. format:auto serves AVIF to browsers that take it: about 30% smaller than WebP on our test photos, at the same quality. Save a chain as a named preset and change every image that uses it in one place. Fileboy makes each image on the first request, then caches it.
Upload a video and get adaptive HLS and DASH streaming, a poster image, captions and a player. No ffmpeg server of your own.
Signed URLs and expiring links keep files private. Scope each API key to its job, list the sites allowed to use your public key, and scan uploads for malware.
Nested folders, metadata and saved searches make files easy to find. Labels give a file a stable name, so you can swap it later and roll back in one click.
A signed webhook when a file is uploaded, a video is ready or a scan finds malware, so you never poll. If your endpoint fails you get an email, and can replay what it missed.
Transforms in the URL
Change the URL and Fileboy makes the version, caches it and serves it. The second request is instant.
https://api.fileboy.io/images/get/FILE_ID
?transform=smartCrop:96x96
?transform=resize:220x_;format:webp
?transform=resize:160x_;grayscaleVideo hosting API
Video is usually the part that makes a file service painful: an encoding job, a queue, somewhere to run it and a player to build. Fileboy does the encoding and gives you the player.
curl https://api.fileboy.io/videos/upload \
-H "Authorization: public YOUR_PUBLIC_KEY" \
-F "file=@./clips/launch.mp4;type=video/mp4" \
-F 'data={"name":"Launch day"}'
# { "id": "4a7b8f2e-...", "name": "Launch day", ... }For developers
A public key, a script tag and an input. Or a React, Vue or Svelte component. Or one call from Node, Ruby, Python, PHP or cURL. Your app stores a file ID and builds URLs from it.
<script>FILEBOY_PUBLIC_KEY = "YOUR_PUBLIC_KEY"</script>
<script src="https://unpkg.com/@cd2/fileboy-browser"></script>
<!-- Upload: the input's value becomes the file ID -->
<input type="hidden" data-fileboy name="avatar" />
<!-- Deliver: any size, any format, from the ID -->
<img src="https://api.fileboy.io/images/get/FILE_ID?transform=resize:200x_;format:auto" />Pricing
Each app has its own plan, so a side project never raises the bill for your main product. Transformations are unlimited on every plan.
Coming from Cloudinary, Mux or S3?
Who we are
We build software for clients and for ourselves. Every project needed uploads, resized images and sometimes video, and every project got a slightly different, slightly worse version. So we wrote it once, properly, and put our own apps on it.
Fileboy has been serving our production apps for years. We use it every week, we fix it when it annoys us, and you can email the people who wrote it at hello@fileboy.io.
8 changes this month. Read the changelog.
Yes. Upload a video and Fileboy encodes it in the background at sizes from 240p up to 1080p, picks a poster image, makes seek-preview thumbnails and serves adaptive HLS and DASH streaming, with MP4 downloads, the soundtrack as an M4A download, suggested posters and an animated preview. Play it with the React player, a script tag, an iframe or any HLS or DASH player, and add captions per language. It is on-demand video only: there is no live streaming, and anyone who has a video's id can play it unless the app turns on signed URLs. The video page has the details.
Resize, crops (including smart crop and face-aware crop), rotate, colour and blur effects, rounded corners, format conversion (AVIF, WebP, JPEG, PNG) and quality are available on every plan, along with logo and text overlays for watermarks. format:auto serves AVIF or WebP to browsers that take them. The image transforms docs list the full set and how to chain them in one URL. The palette transform answers with an image's main colours, with a readable text colour for each, as JSON or CSS.
Yes. Turn on signed URLs for an app and every file, image and video can only be read through a URL your server signs with your private key, which stops working at a time you choose. You can also make single files private by setting their read permission to Signed URLs only. Public keys are safe to ship in browser code: they can upload, but editing and deleting files needs your private key.
Yes. Invite people to an app by email as an Admin, Developer or Viewer, at no extra cost. Developers get keys, webhooks, files and settings, Viewers can look but never see the private key, and only the app's Owner changes billing or deletes it. Fileboy checks the role on every request, in the dashboard and through personal access tokens.
Yes. Every upload is scanned with ClamAV, an open source antivirus engine, a few seconds after it arrives, so uploads aren't slowed down. A file found to contain known malware is blocked for everyone, kept until you delete it, and sends a file.infected webhook. You can also hold every new upload back until its scan is clean. Files over 100 MB aren't scanned, and like any scanner ClamAV only catches malware it knows of, so a clean scan isn't a guarantee.
Not much. The browser uploader and React component talk to Fileboy directly. Your backend only stores the file ID that comes back, the same way it would store any other string.
There are official libraries for the browser, React, Vue, Svelte, Next.js, Node, Ruby, Python and PHP, so Rails, Django, Laravel and SvelteKit apps are covered. Everything is also available over a plain HTTP API with a published OpenAPI spec, so any other language can generate a client.
CD2 Solutions, a small UK software company. We wrote Fileboy because we kept rebuilding the same file handling for client projects, and we have run it in production for years.
Free plan, no card. Create an app, paste your key, upload a file.