Depends on what you have.
There are 2 main groups of the pumps:
- 97-04 TJ (and (some?) XJ) fuel pump is all one style of clamping ring and same size hole but there is 2 different styles of electrical connectors used (I'm not positive but I think the split happened in 03.).
- 05-06 TJ through 2018 JK used the same connector and is compatible with the same style of clamping ring (some of the JK pumps need to be extended to reach the bottom of the TJ depth tank... I'm not sure which years or part numbers they are).
The TJ years have 3 style of plugs:
- 97-02(?) 4 contacts 2 on 2.
- 03(?)-04 4 contacts in a single row.
- 05-06 4 contacts in a single row with a key.
If you remove the key from the 05-18 fuel pump the 03(?)-04 pump will work as long as you switch the order of the pump positive and negative wires (the fuel sending unit wires stay the same). The 2 on 2 style connector will require a different plug be crimped onto the vehicle side harness. The harnesses may need to be lengthened to reach the pump.
I'm not sure if all TJ years are compatible with the higher pressure (58psi) of the still available 05-06 TJ and 07-18 JK pumps. I have not noticed any issues with my i6 4.0L 2004 LJ as of yet but I also haven't put many miles on it with this pump yet.
The 05-06 fuel tank will fit into some (or most?) of the factory and aftermarket TJ skids.