Inverting op amp

You can use the standard opamp differential amplifier circuit to do this, as well
as a proper rail-to-rail opamp (rail to rail on inputs and outputs).

The inverting opamp circuit with a mid-rail virtual ground is the same as a
differential amplifier circuit with the +ve input held at +5V and the Vin going
to the -ve input. All four resistors identical here.