I would use a 74xx07, this is an open collector buffer. Power from 5V and put a 1K resistor pull up to 3V3 on the output.