Salesforce ID converter: 15 to 18 characters
Paste one ID or thousands. The converter turns 15-character IDs into 18-character case-safe IDs, checks 18-character IDs, repairs IDs whose letters were changed to all lower or upper case, and tells you which object each one belongs to. Everything runs in your browser, so your IDs never leave your computer.
15 vs 18 character Salesforce IDs.
15 characters: case-sensitive
What you see in the address bar and in reports. 001D000000IqhSL and 001D000000IQHSL are two different records, which breaks any tool that ignores letter case, such as Excel lookups.
18 characters: case-safe
What the API, Data Loader and integrations return. The extra three characters, IAZ in 001D000000IqhSLIAZ, record which letters are capitals, so the ID stays unique even in Excel.
Get 18-character IDs in reports with CASESAFEID.
Add a formula field
- Setup → Object Manager → your object → Fields & Relationships → New
- Choose Formula, name it “Record ID (18)” and pick Text
- Enter CASESAFEID(Id) and save
- Add the field to your reports and exports
Common key prefixes
- 001 Account · 003 Contact · 00Q Lead
- 006 Opportunity · 500 Case · 005 User
- 701 Campaign · 00T Task · 00U Event
- 01t Product · 801 Order · a0… custom object records
Good to know.
What is the difference between a 15 and 18 character Salesforce ID?
Both point to the same record. The 15-character ID is case-sensitive, so 001ab and 001AB are different records. The 18-character ID adds three characters that encode the case of the first 15, which makes it safe in tools that ignore case, such as Excel lookups.
How do I convert a 15-character ID to 18 characters in Salesforce?
Use the CASESAFEID() formula function: create a Text formula field with CASESAFEID(Id) and add it to your report, or paste a list of IDs into this converter.
Why does VLOOKUP match the wrong Salesforce record?
Excel lookups ignore letter case, so two different 15-character IDs that differ only in case look identical. Convert them to 18-character IDs first.
My 18-character IDs are all lower case. Can they be fixed?
Usually, yes. The last three characters record which letters were capitals, so the converter rebuilds the correct case and marks those rows.
Are my IDs sent anywhere?
No. The conversion runs entirely in your browser.
Other tools you might like.
Need an expert, not just a tool?
Our Salesforce admins ($30/hour) and developers ($40/hour) fix data, automation, forms and integrations. Book a free 30-minute call to talk it through.
