Palette changes between files

I copy from one file and paste to another and the palette changes

Welcome @biobth1, it’s highly possible that you are copying or pasting in an indexed image. You can change the destination to RGB (Sprite > Color Mode > RGB) first, and then paste.