EPI base conversion function