Idiopathic pulmonary fibrosis (IPF) is a chronic progressive lung disease. The disease involves excessive accumulation of fibroblasts and myofibroblasts, and myofibroblasts differentiated by pro-fibrotic factors promote the deposition of extracellular matrix proteins such as collagen and fibronectin. Transforming growth factor-β1 is a pro-fibrotic factor that promotes fibroblast-to-myofibroblast differentiation (FMD). Therefore, inhibition of FMD may be an effective strategy for IPF treatment. In this study, we screened the anti-FMD effects of various iminosugars and showed that some compounds, including N-butyldeoxynojirimycin (NB-DNJ, miglustat, an inhibitor of glucosylceramide synthase (GCS)), a clinically approved drug for treating Niemann–Pick disease type C and Gaucher disease type 1, inhibited TGF-β1-induced FMD by inhibiting the nuclear translocation of Smad2/3. N-butyldeoxygalactonojirimycin having GCS inhibitory effect did not attenuate the TGF-β1-induced FMD, suggesting that NB-DNJ exerts the anti-FMD effects by GCS inhibitory effect independent manner. N-butyldeoxynojirimycin did not inhibit TGF-β1-induced Smad2/3 phosphorylation. In a mouse model of bleomycin (BLM)-induced pulmonary fibrosis, intratracheal or oral administration of NB-DNJ at an early fibrotic stage markedly ameliorated lung injury and deterioration of respiratory functions, such as specific airway resistance, tidal volume, and peak expiratory flow. Furthermore, the anti-fibrotic effects of NB-DNJ in the BLM-induced lung injury model were similar to those of pirfenidone and nintedanib, which are clinically approved drugs for the treatment of IPF. These results suggest that NB-DNJ may be effective for IPF treatment.