If by some chance; in the unlikely event that — used to talk about a very unlikely possibility or contingency.
万が一雨が降ったら、ピクニックは中止します。
If by some chance it rains, we'll cancel the picnic.
万が一に備えて、保険に入っておこう。
Let's get insurance to prepare for the unlikely.
万が一のことがあった場合は、この番号に連絡してください。
If the unlikely happens, please contact this number.
An unlikely event; an emergency or worst‑case scenario — used as a noun (e.g. 'in case of emergency').
万が一に備えるため、避難経路を確認した。
To prepare for emergencies, I checked the evacuation routes.
万が一の事態では、会社のマニュアルに従って行動する。
In an emergency, follow the company's manual.
それは万が一の話だから、あまり心配しないで。
That's a hypothetical worst‑case; don't worry too much.