Large range input single level shifter
A simple clamping circuit would do the trick. The diodes will make sure the voltage seen by the buffer is never more than 3.3+Vd and never less than 0-Vd (where Vd is the diode forward voltage). Additionally, the 1K resistor provided current limiting.







simulate this circuit &ndash; Schematic created using CircuitLab