Styling XLSX files in n8n: cell borders and column widths?

Hi everyone,

I’m using n8n to generate .xlsx files from JSON data, and it’s working great so far. However, I’m looking for a way to style the Excel file, specifically:

  • Add borders to the cells
  • Automatically adjust column widths to fit the content

Has anyone here managed to do this inside n8n?
I’m currently using the “Spreadsheet File” node to create the Excel file, but it seems to offer very limited styling options.

If you’ve found a workaround (maybe using code, a custom function node, or another tool via HTTP Request), I’d love to hear how you did it!

Thanks in advance!

Hi there, one way tht i could think of doing this, is to make your own custom API tht takes care of this and return it to you the result as the response

you can use nodejs and excelJS for this