3.3v to 5v inverter by bc547

That MOSFET should be fine.

Gate goes to B in the diagram
Source goes to E
Drain goes to C

Remove the 4.7k resistor and connect the gate directly to 3.3v

You may find if there is a lot of stray capacitance that you need to reduce the two other resistors down to about 1k to get a fast enough rise time.

There is an adapted version of the circuit which uses two MOSFETs to drive the signal which means that both rising and falling edges are sharp.