Skip to main content

How to convert url text to clickable hyperlink in Excel?

Author: Xiaoyang Last Modified: 2025-06-30

In many practical situations, you may receive Excel files with a list of URLs that appear as plain text rather than as clickable links. As shown in the screenshots below, these unlinked URLs are simply text strings and cannot be accessed directly with a click, which can be inconvenient when you need to visit or share those web pages frequently. While Excel does allow you to manually make each URL clickable by editing each cell, this approach quickly becomes tedious and time-consuming, especially if you have a large dataset.


arrow blue right bubble Convert url text to clickable hyperlink with VBA code

VBA provides a flexible way to automate repetitive Excel tasks, making it especially useful for handling large numbers of rows. For users comfortable with macros, the following VBA code can batch-convert many unlinked URL text entries into active, clickable hyperlinks in a single operation. This approach is helpful when you want to overwrite the original URL cells with hyperlinks or process varied data ranges in one go.

1. Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications editor.

2. In the VBA editor, click Insert > Module. Then, paste the following code into the code window that appears.

Sub ConvertToHyperlinks()
'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. Press the F5 key or click Run to execute the code. A dialog box will prompt you to select the range you want to process—ensure your range is correct before confirming. Once you click OK, all unlinked URLs in your selection will be converted to active hyperlinks.

A screenshot showing the VBA code to convert URLs to clickable hyperlinks in Excel Arrow A screenshot showing clickable hyperlinks in Excel after running the VBA code
Tips and precautions:
  • Always back up your data before running VBA macros, as this method overrides content in the selected cells.
  • If your worksheet is protected, you need to unprotect it before running the macro.
  • This solution is efficient for large batches of URLs and when you are experienced with macros, but users unfamiliar with VBA may prefer the other solutions below.
  • If some cells contain non-URL text or already valid hyperlinks, review the result to ensure no unintended hyperlinks were created.

arrow blue right bubble Convert url text to clickable hyperlink with Kutools for Excel

If working with VBA feels complex or you prefer a graphical interface, Kutools for Excel offers a more intuitive solution. With its versatile Convert Hyperlinks feature, you can swiftly perform several hyperlink-related tasks, such as:

  • Extracting actual addresses from existing hyperlinks;
  • Batch converting plain url text to clickable hyperlinks;
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...

For those who have already installed Kutools for Excel, follow these straightforward steps:

1. Choose the range of cells containing the textual URLs you wish to convert.

2. Navigate to Kutools > Link > Convert Hyperlinks on the ribbon, as illustrated below:

A screenshot showing the Convert Hyperlinks option in Kutools tab on the ribbon

3. In the pop-up Convert Hyperlinks dialog box, select the option Cell contents replace hyperlinks addresses. Then click the Range selection button button to specify the Result range—this allows you to choose where the new clickable hyperlinks will be placed. You can select a different column or the original range, depending on whether you want to overwrite or keep the original data.

A screenshot showing the Convert Hyperlinks dialog

4. Click OK. All selected text URLs will instantly become clickable hyperlinks in your chosen result range. The following screenshot shows the final outcome:

A screenshot showing URLs converted to clickable hyperlinks using Kutools

Tips:
  • Choose Convert source range if you would like the hyperlinks to overwrite the original URL text directly. Choosing a different range allows you to keep both the original and new data side-by-side for comparison.
  • If you are linking to locations within the current workbook (such as worksheet cells or named ranges), check Hyperlinks is a place in this document for accurate results—this is particularly useful when managing internal navigation links.
  • Always preview the result if your data includes mixed content, such as email addresses or malformed URLs, as only valid URLs will be converted into functioning hyperlinks.

This method is efficient and user-friendly, ideal for users who do not want to manage or edit macros and prefer a ready-made graphical tool for batch hyperlink creation.


arrow blue right bubble Convert url text to clickable hyperlink with Excel Formula (HYPERLINK function)

For users who prefer a formula-based solution or need to quickly generate hyperlinks without using macros or add-ins, Excel's HYPERLINK function is a reliable option. This method is particularly helpful when you wish to keep both the original URL text and the generated clickable hyperlink, or when working in restricted environments where VBA/macros are disabled and add-ins cannot be installed.

1. Suppose your plain-text URLs are in column A, starting at cell A2. Click to select cell B2 (or the first cell in your helper column next to your data), and enter the following formula:

=HYPERLINK(A2, A2)

This formula creates a hyperlink in cell B2 that displays and links to the same URL as in cell A2.

2. Press Enter to apply the formula to the cell.

3. To quickly convert all URL text to clickable hyperlinks for the entire list, position your mouse in the lower-right corner of cell B2 (the fill handle), then drag down to fill the formula for other rows. Alternatively, double-click the fill handle if column A is continuous, and Excel will automatically fill down as far as your data goes.

4. If needed, you can copy the results and use Paste Values to replace the original text URLs with their clickable equivalents, or keep both columns for reference.

Troubleshooting and tips:
  • If you see errors (such as #VALUE!), double-check that the original cell contains a valid URL format (for example, beginning with http:// or https://), since the HYPERLINK function requires a valid address.
  • To display different text instead of the raw URL, modify the formula as this, which creates a clickable link with custom display text.
    =HYPERLINK(A2, "Visit Site")
  • When working with a large volume of data, Excel formulas update dynamically—deleting or changing the original text will automatically update associated hyperlinks.

Advantages: The formula approach avoids direct data modification and can be easily copied or referenced in other calculations. Also, it is quick to implement for small to moderately sized datasets.

Limitations: This method requires the use of helper columns and may not scale as elegantly as automated tools for vast datasets.

Overall, the formula method is an excellent lightweight alternative for straightforward URL-to-hyperlink conversion, especially for users who prefer built-in Excel solutions with no add-ins or code.


In summary, converting plain URL text to clickable hyperlinks in Excel can be accomplished using VBA scripts, the Kutools for Excel add-in, or the built-in HYPERLINK formula, each tailored to different usage scenarios and user preferences. Always consider data backup before performing batch operations, and verify the accuracy of your results after conversion. If problems arise (such as non-hyperlinked cells, formula errors, or add-in limitations), recheck your data format, tool settings, and cell references, or try an alternative method from those introduced above to complete the task smoothly.


arrow blue right bubble Demo: Convert url text to clickable hyperlink with Kutools for Excel

 
Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!

Related article:

How to extract actual addresses from hyperlinks in Excel?

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!