Bile acids are pivotal for the absorption of dietary lipids and vitamins and function as important signaling molecules in metabolism. Here, we describe a genetically encoded fluorescent bile acid sensor (BAS) that allows for spatiotemporal monitoring of bile acid transport in single living cells. Changes in concentration of multiple physiological and pathophysiological bile acid species were detected as robust changes in Förster resonance energy transfer (FRET) in a range of cell types. Specific subcellular targeting of the sensor demonstrated rapid influx of bile acids into the cytoplasm and nucleus, but no FRET changes were observed in the peroxisomes. Furthermore, expression of the liver fatty acid binding protein reduced the availability of bile acids in the nucleus. The sensor allows for single cell visualization of uptake and accumulation of conjugated bile acids, mediated by the Na(+)-taurocholate cotransporting protein (NTCP). In addition, cyprinol sulphate uptake, mediated by the putative zebrafish homologue of the apical sodium bile acid transporter, was visualized using a sensor based on the zebrafish farnesoid X receptor. The reversible nature of the sensor also enabled measurements of bile acid efflux in living cells, and expression of the organic solute transporter αβ (OSTαβ) resulted in influx and efflux of conjugated chenodeoxycholic acid. Finally, combined visualization of bile acid uptake and fluorescent labeling of several NTCP variants indicated that the sensor can also be used to study the functional effect of patient mutations in genes affecting bile acid homeostasis.