Rich Text Area Field Considerations
Keep these considerations in mind when working with rich text area fields.
Required Editions
| Available in: the Salesforce mobile app, Salesforce Classic, and Lightning Experience |
| Available in: Essentials, Contact Manager, Group, Professional, Enterprise, Performance, Unlimited, and Developer Editions |
General
- Rich text area fields aren’t available in self-service portals and they aren’t supported for external objects.
- When a rich text area field containing an image larger than 50x50 pixels is placed as the first field on a compact layout or in the Highlights Panel component on a Lightning page, the image is cropped. In any other position, the image appears as expected.
Character Limits
- Salesforce supports up to 131,072 characters for each rich text area field, including the HTML tags. You can also set a lower limit.
- An object can contain unlimited rich text area and long text area fields, although your edition’s allocation for total custom fields allowed on an object, regardless of field type, applies. Each object can contain 1,638,400 characters across long text area and rich text area fields. When you create a long text area or rich text area field, you set a character limit for the field—the maximum length of the text that can be entered. The default character limit for long text area and rich text area fields is 32,768 (32 KB). The minimum character limit is 256.
- You can’t paste special characters, such as bullets or curly quotes, into a rich text field from another application. It’s best to type or paste in plain text and use the rich text editor to format it.
- HTML code isn’t supported in the Salesforce HTML editor. HTML code is treated as text.
- The character count includes HTML markup that isn’t visible in the editor. The HTML markup
is returned through the API. For example, bold formatting includes the
<b></b>tag around your text and adds up to 7 more characters. Special characters like&are encoded as&which adds up to 5 more characters. Also, the rich text field in Lightning Experience and Salesforce Classic can vary in HTML markup, such as with using RGB or hexadecimal values when color formatting is applied. Paragraph and line breaks also insert the<p></p>and<br>tags, counting against the character limit. See Editing Rich Text Area Fields in Records.
Formatting and Toolbar Differences Between Lightning Experience and Salesforce Classic
The rich text editors for custom fields in Lightning Experience and the Salesforce mobile app come with a few differences, as compared to rich text editors in Salesforce Classic. See Editing Rich Text Area Fields in Records.
Images and Hyperlinks
- You can’t disable specific rich text area features. For example, you can't disable support for hyperlinks or images on certain fields.
- You can’t upload an image to a rich text area using the file:// protocol in the URL field. Instead, use http:, https:, data:, //, /, or a relative URL.
- When uploading an image to a rich text area, you must enter a URL that is valid and well-formed.
Reports
- Only the first 254 characters in a rich text area or a long text area are supported with the “contains” operator in a report filter.
- You can't use a filter on a rich text area for locales and languages that use multibyte characters.
- The first 999 characters in a standard rich text area or a long text area are displayed in a report. For custom fields, only the first 254 characters are displayed. If you download the report as Details Only, the entire field is available.
Did this article solve your issue?
Let us know so we can improve!

