To and from formats