Question: how to open xnb files terraria?
Answer: Unzip the contents of this zip-file to somewhere you can work with files.
Put your any . XNB file(s) you want to modify in the PACKED folder.
Double click UNPACK FILES. BAT to extract the contents. ... 
To re-compile the image. Just double click PACK FILES.