Sorry and Excuse Me in Thai: Khǎw Thôot

How to say sorry in Thai: khǎw thôot, formal khǎw à-phai, excuse me on the BTS, and mai pen rai, the usual reply to a small apology. With tones.