Script of the Month: Text Hyperlink Formatter
Need to apply, change, or remove text hyperlink formatting quickly? This script can help.
This article appears in Issue 145 of InDesign Magazine.
If you work with a lot of hyperlinks in your InDesign documents, you know that it can sometimes be a pain to format them—especially if they weren’t formatted correctly when they were created. By itself, InDesign doesn’t give you the ability to quickly format all text hyperlinks in a document. But our Script of the Month does just that!
When you run the script (written by Brian Pifer of Design Time Solutions), you get a dialog box where you can choose a character style to apply to every hyperlink text source in your InDesign file (Figure 1).

You can also use the script to solve a rather annoying problem that happens when you remove hyperlinks in InDesign: the character styling stays behind. So what is no longer a hyperlink source still looks like one. Usually this is tedious a manual cleanup job. But with the script you can instantly remove all phantom formatting by applying [None] before you remove the hyperlinks. You can download the script for free here.
Note that the script only works on all hyperlinks in a document. There’s no option for you to target specific links or pages. If you need to change the formatting of just a few specific hyperlinks, select them in the Hyperlinks panel and then choose Edit Hyperlink from the panel menu. This opens the Edit Hyperlink dialog box where you can pick a different character style to apply to the selected hyperlink sources.
Commenting is easier and faster when you're logged in!
Recommended for you
A Hyperlinks Mystery Solved
The InDesign team has done a lot to improve the hyperlinks features in recent mo...
Three Ways to Improve Your Hyperlinks
One of my favorite new-ish features of InDesign CC (version 9.2) is the overhaul...
InDesign Magazine Issue 145: Designing with Gradients
Issue 145 has articles on designing with gradients, page numbering, InDesign's h...
