How to convert nes palette to lut

How to convert nes palette to lut png ? I want to use it for any core by lut shader Also does anyone have pal.png lut?