PDF Editing Issues

How to Convert Text to Title Case in Adobe Acrobat Forms

Natalie TaylorNatalie Taylor Nov 5, 2026 868 views

Question details

The user needs a way to automatically convert arbitrary text inputted into an Adobe Acrobat PDF form field into Title Case, capitalizing the first letter of every word.

How to Convert Text to Title Case in Adobe Acrobat Forms
Product
Adobe Acrobat
Device & OS
not provided
Scenario
Creating or editing an interactive PDF form where specific text fields require standardized Title Case formatting for user-submitted text.
Observed behavior
Adobe Acrobat lacks a native, built-in text formatting option for Title Case, requiring users to manually format the text or implement a custom script to automate the process.
Before you start

Ensure you are using Adobe Acrobat Pro to edit the PDF, as the free Adobe Acrobat Reader does not allow you to enter 'Prepare Form' mode or add document-level JavaScript to form fields.

Solution 1Recommended

Use Custom JavaScript for Title Case Conversion

Add a custom JavaScript function to your PDF form's format script to automatically capitalize the first letter of each word inputted by the user.

Because Adobe Acrobat does not provide a native 'Title Case' text format option in its field properties, you must use a short JavaScript code snippet. This script splits the entered text into individual words, capitalizes the first letter of each, and makes the rest of the letters lowercase.

1
Enter Prepare Form Mode

Open your PDF document in Adobe Acrobat Pro, click on 'Tools' in the top menu, and select 'Prepare Form'.

2
Open Text Field Properties

Right-click the specific text field you want to format and select 'Properties' from the context menu.

3
Navigate to Custom Format Script

Go to the 'Format' tab. From the 'Select format category' dropdown menu, choose 'Custom', and then click the 'Edit' button next to 'Custom Format Script'.

4
Insert the JavaScript Code

Type or paste the following script into the editor: function toTitleCase(s) { var words = s.split(' '); for (var i in words) words[i] = words[i].charAt(0).toUpperCase() + words[i].substr(1).toLowerCase(); return words.join(' '); } event.value = toTitleCase(event.value);

5
Save and Test

Click 'OK' to save the script, then click 'Close' on the Properties window. Click the 'Preview' button at the top right to test the field. Type in lowercase words, and they will automatically convert to Title Case when you click out of the box.

Use Custom JavaScript for Title Case Conversion
Handling Abbreviations and Acronyms: This basic script converts standard acronyms like 'USA' to 'Usa'. If you want to preserve uppercase acronyms, you can remove the '.toLowerCase()' portion of the script, though this will leave mixed-case typos like 'wOw' unchanged.
WPS PDF Editor

Edit and Manage PDF Forms Easily with WPS Office

Looking for an easier way to manage PDF documents and edit text? WPS Office provides a comprehensive, user-friendly PDF editor that lets you fill forms, edit text directly, and manage document layouts without dealing with complex coding or scripting.

  1. 1. Download and Install: Download and install WPS Office for free on your computer.
  2. 2. Open Your PDF: Launch WPS PDF and open the document or form you want to modify.
  3. 3. Fill or Edit: Navigate to the 'Form' tab to interact with form fields, or use the 'Edit' tab to directly modify existing PDF text to your preferred case formatting.
  4. 4. Save Your Changes: Click 'Save' to preserve your perfectly formatted PDF document.
Easily edit, fill, and sign PDF forms with an intuitive interfaceModify text, change fonts, and adjust formatting seamlesslyHighly compatible with standard PDF formats and standard interactive formsLightweight application that works efficiently across multiple operating systems
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't Adobe Acrobat have a native Title Case option?

Adobe Acrobat provides basic text formatting options like uppercase and lowercase but omits a native Title Case feature because true Title Case rules are complex. Standard rules often require keeping conjunctions, prepositions, and specific acronyms in different cases, which is difficult to automate natively without advanced scripting.

How do I prevent the JavaScript from changing acronyms like 'USA' to 'Usa'?

To preserve uppercase acronyms, modify the provided custom JavaScript by removing the '.toLowerCase()' method from the script. Be aware that doing this will prevent the script from fixing incorrectly capitalized letters within standard words.

Does this JavaScript formatting apply instantly as I type?

No. When applied as a Custom Format Script, the text will convert to Title Case immediately after you finish typing and either click outside the text field or press the 'Tab' key to move to the next field.