Each month BLS prices a fixed basket of goods and services, from rent and groceries to medical care, and publishes it as an index. CPI-U, the version for all urban consumers, is the one most people mean by "inflation."
To convert a dollar amount between two years, multiply by the ratio of their CPI values. The site's inflation data runs from 1913 to 2025, using BLS annual averages.