This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /Salesforce

How to Convert 15 Digit ID to 18 in Salesforce

Updated on:
June 8, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to expand a 15-digit Salesforce ID to 18 characters using a formula field.

Quick summary

In Salesforce, 15-digit IDs are case-sensitive and can cause errors in integrations and reports; converting them to 18-digit IDs using a formula field ensures reliable, case-insensitive record references. This tutorial walks through creating a Formula field in the Object Manager via Advanced Setup to output the full 18-character ID.


Steps

  1. Click the gear icon at the top-right of your Salesforce dashboard to open the setup menu.
  2. Select Open Advanced Setup from the dropdown.
  3. Click Object Manager at the top of the Setup page.
  4. Select an object from the list to open it.
  5. Select Fields & Relationships from the left-hand sidebar.
  6. Click New at the top to start creating a new field.
  7. Choose Formula as the Data Type for the new field.
  8. Select Text as the Formula Return Type.
  9. Enter or paste the 18-digit ID conversion formula into the Formula text box.
  10. Review the field details, then click Next to proceed.
  11. Review the details again, then click Save to create the field.

📌 Why this matters

Converting a 15-digit Salesforce record ID to an 18-digit case-insensitive ID is essential for accurate data integrations, cross-system reporting, and VLOOKUP operations in tools like Excel or Google Sheets. The native 15-character ID can produce mismatches when used in case-insensitive environments, leading to broken automations and data integrity issues. By adding a simple Formula field in the Salesforce Object Manager, admins can surface the stable 18-digit ID directly on any record without code or third-party tools. This makes the fix accessible to Salesforce admins of all levels and prevents common ID-related bugs at scale.
Your product deserves an interactive demo
Start free
Similar Articles
Enable Inline Editing in Salesforce ReportsEnable Inline Editing in Salesforce Reports
Salesforce

How to Enable Inline Editing in Salesforce Reports

Madhav Bhandari
Director of Marketing @ Storylane
Salesforce

How to Enable Knowledge in Salesforce

Madhav Bhandari
Director of Marketing @ Storylane
Salesforce

How to Enable MFA in Salesforce

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Hubs
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it