XNB to original file

Hi

Does anybody know if it’s possible to convert XNB file from any game to its original file?
If yes, how to do this?

In general it is not possible. In special cases you could maybe extract the data and construct a file which is equivalent or similar to the original file from which the XNB was generated in the first place.

For images you could load the XNB as Texture and then use Texture.SaveAsPng() or Texture.SaveAsJpeg(). here is a sample: https://github.com/masspe/XnbConverter/blob/master/XnbConverter/Game1.cs