// make.com integration
The File to Base64 module downloads a file from a URL and returns its Base64 encoding plus a ready-to-embed data URI. It is the quickest way to inline logos, icons or fonts into HTML templates in Make.com.
You provide a public URL. The module downloads the file (following redirects), detects its content type, and returns the raw Base64 string alongside a complete data URI like data:image/png;base64,iVBOR... that you can drop straight into an src attribute or a CSS rule.
| Field | Description | How to use it |
|---|---|---|
| Connection | Links the module to the CustomJS service | Select or create a connection using your API key |
| File URL | The file to download and encode | A public http(s) URL. Redirects are followed automatically. Maximum file size is 8 MB |
Embed a company logo into a PDF invoice template:
https://example.com/logo.png<img src="{{Data URI}}" alt="Logo" width="160">
The logo is now part of the HTML itself, so the PDF renderer never has to fetch it, which makes rendering faster and immune to broken image links.
| Output | Description |
|---|---|
| Base64 | The raw Base64 string of the file content |
| Data URI | A complete data:<content-type>;base64,... string, ready for src attributes or CSS url() values |
| Content Type | The detected MIME type, e.g. image/png |
| Size (bytes) | The file size in bytes |
http(s).See the Make.com integration overview for setup instructions, and check out the other utility modules: Group & Aggregate Array, AI JSON Parser, Parse Localized Number and Format Date & Convert Timezone. More cleanup recipes are in Data cleanup snippets for Make.