Ammonium-based zwitterions having adequate hydrophilicity showed both LCST- and UCST-type phase transitions after mixing with water.