KutoolsforOffice — One Suite. Five Tools. Get More Done.February Sale: 20% Off

How to convert a bunch of text URLs to active hyperlinks in Excel?

AuthorXiaoyangLast modified

If you receive a list of URL addresses in an Excel worksheet—such as website links pasted from emails, databases, or exported reports—these may often appear as plain text rather than clickable hyperlinks. This is a common situation when importing or copying data, resulting in links that do not offer direct navigation. Having to click into each cell and manually activate the hyperlinks is time-consuming, especially when handling dozens or even hundreds of entries. Transforming these text URLs into clickable hyperlinks significantly improves efficiency, allowing you and your colleagues to quickly access relevant web pages with a single click.

convert text URLs to active hyperlinks

Convert a bunch of text URLs to active hyperlinks with formula

Convert a bunch of text URLs to active hyperlinks Kutools for Excel

Convert a bunch of text URLs to active hyperlinks with VBA code


Convert a bunch of text URLs to active hyperlinks with formula

Manually double-clicking each cell to activate hyperlinks is inefficient for large datasets. Fortunately, Excel provides formula-based methods to automate the process.

To quickly transform plain text URLs into clickable hyperlinks, you can use Excel’s built-in HYPERLINK function. This is especially suitable if all your URLs are correctly formatted (e.g., begin with http:// or https://), and you’re comfortable using formulas. This method is simple, does not require any add-ins or macro activation, and preserves the original data structure.

1. Select a blank cell where you wish the clickable link to appear, such as C2, and enter the following formula:

=HYPERLINK(A2, A2)

This formula will turn the plain text URL found in cell A2 into an active hyperlink in the cell where you enter the formula (for example, C2). If you wish the link text to be different from the URL, you can adjust the second argument accordingly.

2. After entering the formula, press Enter to confirm. Then, to apply the formula to the rest of your list, use the fill handle: position the cursor at the bottom right corner of the cell until it turns into a plus sign (+), then drag down to fill the formula for all relevant rows.

You will see that all text URLs have been successfully converted to active hyperlinks, as shown below:

use a formula to convert text URLs to active hyperlinks

Tip: If you need to replace the original column with hyperlinks, you can copy the new hyperlink column and use Paste Special > Values to overwrite the original data. Ensure your source URLs are valid and include the appropriate http/https prefix, as hyperlinks may not work properly for incomplete addresses.

Note: The formula-based approach keeps your worksheet dynamic—if the text URL changes, the hyperlink updates automatically. However, you will need to copy and paste as values if you require static links independent of the original text.


Convert a bunch of text URLs to active hyperlinks Kutools for Excel

For those who regularly manage large volumes of URLs or require advanced flexibility, Kutools for Excel offers a user-friendly solution. The Convert Hyperlinks feature makes it easy to batch-convert text URLs into clickable links, minimizing the risk of manual error, and also supports extracting actual hyperlink addresses from cells. This method is especially recommended if you often transfer reports, import/export data, or clean up shared documents where URL handling is frequent.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

Once Kutools for Excel is installed, the process is both straightforward and efficient:

1. Select all cells containing the text URLs you want to convert.

2. Go to the ribbon and click Kutools > Link > Convert Hyperlinks

click Convert Hyperlinks feature of kutools

3. In the Convert Hyperlinks dialog box, select Cell contents replace hyperlinks addresses under Convert type. To directly convert in the source range, ensure Convert source range is checked. This will immediately convert all text URLs within your selection to clickable links.

select Cell contents replace hyperlinks addresses option in the dialog box

4. Click the OK button. All selected plain text URLs are now clickable hyperlinks as shown in the output screenshot:

the text URLs have been activated

If you prefer placing the converted hyperlinks in a different area rather than overwriting your original data, uncheck Convert source range, then choose your desired output range using the Result range field. This lets you retain your original URLs while creating hyperlinks in another location, offering flexibility in organizing your worksheet.

put the result to another cell instead of the original cell

Advantages: Kutools enables batch processing, avoids repetitive work, reduces errors, and offers the choice to overwrite or keep the original data. It is particularly effective for handling extensive lists or mixed data.

Precaution: Only valid URL formats can be converted to working hyperlinks. Non-standard web addresses may not be converted as expected.

Click to Download Kutools for Excel and free trial Now!


Convert a bunch of text URLs to active hyperlinks with VBA code

If your workflow frequently involves automating Excel through scripts, or if you need to perform batch hyperlink conversion with minimal manual intervention, a VBA solution can be highly practical. This approach allows you to instantly convert any range of text URLs in place, and is suitable for users familiar with Excel's Developer tools.

1. Press ALT + F11 simultaneously to open the Microsoft Visual Basic for Applications window.

2. In the VBA editor, click Insert > Module to create a new code module, then paste the following code into the blank module window.

VBA code: Convert a bunch of text URLs to active hyperlinks:

Sub activateHyperlinks()
'Updateby Extendoffice
Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
For Each Rng In WorkRng
    Application.ActiveSheet.Hyperlinks.Add Rng, Rng.Value
Next
End Sub

3. Run the macro by pressing F5 or by selecting Run (the green triangle) in the VBA editor toolbar. The macro will prompt you to select the range of cells to convert. Choose the relevant range containing your plain text URLs and click OK.

 vba code to select the cells to convert to clickable hyperlinks

4. After executing the code and confirming your selected range, all URLs in that selection will be immediately converted into clickable hyperlinks, as seen below:

the plain text URLs have been converted to active hyperlinks

Troubleshooting: If the VBA script fails to convert some cells, check for invalid URL formats or leading/trailing spaces in your data. Also, remember that running macros requires macros to be enabled in your Excel settings.

Tips: Always save your workbook before running VBA code, as VBA actions are not automatically reversible with Undo.

In summary, each method provides a suitable solution depending on your task scale, technical comfort, and the tools available. If you face conversion issues, double-check URL formats and be aware of merged or hidden cells in your selection. It's also recommended to back up your data before performing batch modifications.

Best Office Productivity Tools

🤖Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |  Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |  Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

ExcelWordOutlookTabsPowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in