Level shifting 3.3V to 12V without inversion

Yes, you use an optocoupler. However the bandwidth is limited, without knowing what exactly you are trying to do its not clear if this will work for you. Please explain the pulse requirements of the external circuit.