Key Takeaways
- cms-hpt.txt is a small plain-text file at the root of your website that tells CMS where your machine-readable file (MRF) lives.
- Each hospital location needs five lines: location-name, source-page-url, mrf-url, contact-name, and contact-email.
- Pair it with a “Price Transparency” link in your homepage footer, and update it whenever your file name or address changes.
What the cms-hpt.txt file does
Under the federal Hospital Price Transparency rule (45 CFR Part 180), hospitals publish a machine-readable file of standard charges. Since January 1, 2024, CMS has also required a plain-text file named cms-hpt.txt at the root of the hospital's public website, plus a “Price Transparency” link in the homepage footer.
The text file works like a signpost. It lets CMS and automated tools find each location's machine-readable file without hunting through your site.
The five required fields
- location-name: the hospital location's name, as it appears in your file.
- source-page-url: the public web page where the machine-readable file is posted.
- mrf-url: the direct address of the machine-readable file itself, not a landing page.
- contact-name: the person responsible for the file.
- contact-email: an email address for questions about the file.
A copy-ready example
For a single location, the whole file is five lines:
location-name: Example General Hospital source-page-url: https://www.examplehospital.org/price-transparency mrf-url: https://www.examplehospital.org/files/12-3456789_example-general-hospital_standardcharges.json contact-name: Jane Doe contact-email: pricetransparency@examplehospital.org
Hospitals with several locations repeat the same five lines for each location, separated by a blank line.
Step by step
- Confirm the final address of each location's machine-readable file. Use the direct file link, ending in .json or .csv, not the page that links to it.
- Create a plain-text file named exactly cms-hpt.txt (lowercase) and add the five lines for each location.
- Upload it to the root of your public website, so it opens at yourdomain.org/cms-hpt.txt.
- Add a link labeled “Price Transparency” to your homepage footer, pointing to the page that hosts the file.
- Open yourdomain.org/cms-hpt.txt in a browser to confirm it loads as plain text, then run a free check.
Common mistakes
- The file sits in a subfolder (for example /files/cms-hpt.txt) instead of the site root.
- mrf-url points to a landing page or a login screen instead of the file itself.
- The file was renamed or moved after an annual update, but cms-hpt.txt still lists the old address.
- The web server returns an HTML error page or a redirect loop instead of the text file.
- The footer link is added by JavaScript only, so automated checks may not see it.
Keep it current
The file is only useful if it stays accurate. Build it into the same annual process that updates your machine-readable file, and check it again after any website redesign or hosting change.
Common questions
Where exactly does the cms-hpt.txt file go?
At the root of the hospital's public website, so it opens at yourdomain.org/cms-hpt.txt.
Does every location need its own entry?
Yes. Repeat the five lines for each hospital location, separated by a blank line.
Is the cms-hpt.txt file the same as the machine-readable file?
No. The text file only points to where each machine-readable file is posted; the machine-readable file contains the standard charges.
Sources
General information, not legal or regulatory advice. CMS requirements change; confirm specifics against current CMS rules for your organization.