ACF Field Name Sanitizer

labels -> valid field_name values

Write the ACF field label and get the correct field name with <code>get_field()</code> and <code>the_field()</code> snippets ready to use. Prefix support for consistent naming across all field groups.

Field labels
Prefix
lowercase
strip accents
show snippets
ACF field names

Enter ACF field labels on the left

a-z 0-9 _ no spaces -> _ no hyphens -> _ starts with a letter or _ max 64 chars no reserved PHP words

ACF Pro (Advanced Custom Fields) is the most widely used plugin for extending WordPress with custom fields. Each field has a human-readable label and a field name used in PHP code: the field name must be lowercase, without spaces or special characters, and unique within the field group.

  • Converts automatically uppercase to lowercase
  • Replaces spaces and hyphens with underscore
  • Removes invalid characters
  • Shows get_field() and the_field() snippets ready to paste into the PHP template
  • Supports the convention with prefix (hero_, card_, seo_, etc.)