Label → API Name Converter
Turn a field or object label into a clean Salesforce API name. Get PascalCase, snake_case, and the auto-derived API name with the `__c` suffix.
Label
API names
Output appears here.
Turn a field or object label into a clean Salesforce API name. Get PascalCase, snake_case, and the auto-derived API name with the `__c` suffix.
Output appears here.
When you create a custom field or object in Salesforce, the API name is auto-derived from the label by replacing whitespace with underscores, stripping non-ASCII, and appending the `__c` suffix. This converter mirrors that behaviour locally so you can plan a naming convention, audit existing fields, or generate the API name for a metadata YAML before you log into Setup.
The converter trims the label, strips Salesforce-reserved leading characters, replaces runs of whitespace and punctuation with single underscores, and truncates to the 40-character API limit. It then exposes three views of the same name: the auto-derived custom-field form (`Account_Tier__c`), a clean PascalCase variant useful for naming Apex classes (`AccountTier`), and a snake_case form useful in metadata YAML and external integrations (`account_tier`).