Extraction of common bile duct stones by endoscopic retrograde cholangiopancreatography generally involves biliary sphincterotomy, endoscopic papillary balloon dilation or a combination of both. Endoscopic papillary large-balloon dilation after sphincterotomy has increased the safety of large stone extraction. Cholangioscopically directed electrohydraulic and laser lithotripsy using single-operator mother-daughter systems or direct peroral cholangioscopy using ultraslim endoscopes are increasingly utilized for the management of refractory stones. In this Review, we focus on advances in endoscopic approaches and techniques, with a special emphasis on management strategies for 'difficult' common bile duct stones.