instead of N; in place of N; instead of doing — also, to compensate
今日はお茶の代わりに水でいいよ。
kyou wa o cha no kawari ni mizu de ii yo.
Water instead of tea is fine today. casual
駅から遠い代わりに、家賃が安い。
eki kara tooi kawari ni, yachin ga yasui.
It's far from the station, but the rent is cheap to make up for it. neutral
Variants
に代わってnikawatteformal
always follows a NOUN naming the replaced entity (never a clause) — covers both representative substitution (社長に代わって副社長が挨拶した "on the president's behalf") and plain entity replacement (石炭に代わって石油がエネルギー源となった "oil replaced coal as the energy source"); written/formal register, not used for the compensation sense.
代わりに
かわりにkawari niN3neutral