Pluripotent stem cells have the capability to differentiate into any somatic cell type of the human body. The generation of surrogate cells for the treatment of liver, lung, and pancreatic diseases is of great medical interest. First, the in vitro formation into cells of the definitive endoderm is required. Upon commitment into this lineage, the cells express transcription factors such as FOXA2, SOX17, HNF1B; GATA family members; and the surface protein CXCR4. Unfortunately, some pluripotent stem cells resist the differentiation and contaminate the culture. Thus, we describe here an endoderm differentiation protocol, which yields endoderm-committed cells in high numbers in a 4-day treatment protocol. Second, a method for the purification of CXCR4-positive endoderm cells by magnetic-activated cell sorting (MACS) and fluorescence-activated cell sorting (FACS) is described. The purification by MACS is quick and reliable and can be used to obtain pure endoderm cells either meant for downstream analysis such as omics or further differentiation experiments into endoderm-derived somatic cells. © 2017 by John Wiley & Sons, Inc.