How to Convert Base64 to JPG in n8n?

Hello everyone,

I’m working on an n8n workflow that downloads shipping labels from a logistics system using the HTTP Request node. The response is received successfully, but the file comes encoded in base64.

Currently, I’m sending this data to an external server that handles the conversion to JPG, but I would like to avoid this external dependency if possible.

Is there any native way in n8n to convert a base64-encoded image to JPG directly within the workflow? I’ve looked into the “Edit Image” node, but I’m not sure if it can handle base64 input directly or if some pre-processing is required.

Has anyone dealt with a similar case or have any recommendations on how to handle this conversion entirely within n8n?

Thanks in advance.

Good morning @Danishakers

Have you ever thought about doing this path below? This is what I would do in this case;

HTTP Request
Function Item (converts base64 → JPG/binary)
(Destination: Email, FTP, Drive, etc.)

See if this suggestion makes sense to you.

Have a great day!

“Convert to/from file” node is the one ypu are looking for. Could be slightly different name as it is from the top of my head.