You could use the write_string() method instead of write_column(). The write_column() method calls write() which calls write_url() by default. That would require you to roll your own loop.

Or set the workbook constructor property to tell the module to ignore urls when calling write():

workbook = xlsxwriter.Workbook(filename, {'strings_to_urls': False})
Answer from jmcnamara on Stack Overflow
🌐
XlsxWriter
xlsxwriter.readthedocs.io › example_hyperlink.html
Example: Adding hyperlinks — XlsxWriter
red_format = workbook.add_format( { "font_color": "red", "bold": 1, "underline": 1, "font_size": 12, } ) # Write some hyperlinks worksheet.write_url("A1", "http://www.python.org/") # Implicit format. worksheet.write_url("A3", "http://www.python.org/", string="Python Home") worksheet.write_url("A5", "http://www.python.org/", tip="Click here") worksheet.write_url("A7", "http://www.python.org/", red_format) worksheet.write_url("A9", "mailto:jmcnamara@cpan.org", string="Mail me") # Write a URL that isn't a hyperlink worksheet.write_string("A11", "http://www.python.org/") workbook.close()
🌐
GitHub
github.com › jmcnamara › XlsxWriter › issues › 350
write_url produces broken hyperlink · Issue #350 · jmcnamara/XlsxWriter
April 27, 2016 - Hi, I am using XlsxWriter to create an report file with links to problems in other excel documents. Everything worked great, until i realized that some hyperlinks didn't work when there was a s...
Author: jmcnamara
🌐
GitHub
github.com › jmcnamara › XlsxWriter › issues › 727
Support for URLs in rich text · Issue #727 · jmcnamara/XlsxWriter
June 20, 2020 - import xlsxwriter book = xlsxwriter.Workbook('hello.xlsx') sheet = book.add_worksheet() hyperlink = book.add_format({'hyperlink': True}) bold = book.add_format({'bold': True}) sheet.write_rich_string('A1', 'This is ', bold, 'bold', hyperlink, 'https://github.com' ) workbook.close()
Author: jmcnamara
🌐
Gemfury
gemfury.com › 3stack-software › 3stack-xlsxwriter
xlsxwriter/worksheet.py · 3stack-software / 3stack-xlsxwriter v0.8.4.post1 - python package | Gemfury
if re.match("internal:", url): url = url.replace('internal:', '') string = string.replace('internal:', '') link_type = 2 # Remove the URI scheme from external links and change the directory # separator from Unix to Dos. if re.match("external:", url): url = url.replace('external:', '') url = url.replace('/', '\\') string = string.replace('external:', '') string = string.replace('/', '\\') # Strip the mailto header. string = string.replace('mailto:', '') # Check that row and col are valid and store max and min values if self._check_dimensions(row, col): return -1 # Check that the string is < 32767 chars str_error = 0 if len(string) > self.xls_strmax: warn("Ignoring URL since it exceeds Excel's string limit of " "32767 characters") return -2 # Copy string for use in hyperlink elements.
🌐
TutorialsPoint
tutorialspoint.com › python_xlsxwriter › python_xlsxwriter_hyperlinks.htm
Python XlsxWriter - Hyperlinks
A hyperlink is a string, which when clicked, takes the user to some other location, such as a URL, another worksheet in the same workbook or another workbook on the computer. Worksheet class provides write_url() method for the purpose.
🌐
XlsxWriter
xlsxwriter.readthedocs.io › worksheet.html
The Worksheet Class — XlsxWriter
XlsxWriter supports Excels worksheet limits of 1,048,576 rows by 16,384 columns. ... Write generic data to a worksheet cell. ... *args – The additional args that are passed to the sub methods such as number, string and cell_format. ... Other values from the called write methods. Excel makes a distinction between data types such as strings, numbers, blanks, formulas and hyperlinks...
🌐
GitHub
github.com › jmcnamara › XlsxWriter › issues › 511
Issue with hyperlinking for cells containing multiple URLs · Issue #511 · jmcnamara/XlsxWriter
April 20, 2018 - Upon clicking Yes, it successfully recovers the workbook and, as said above, the whole cell is hyperlinked instead of having each URL hyperlinked individually. I'm using Python 2.7.10, XlsxWriter 0.9.3 (due to the requirements of pyexcel-xlsxw) and Excel 16.12 on macOS.
Author: jmcnamara
Find elsewhere
🌐
GitHub
github.com › jmcnamara › XlsxWriter › issues › 489
write_formula and write_url problems · Issue #489 · jmcnamara/XlsxWriter
February 4, 2018 - I use XlsxWriter 1.0.2 and python 2.7 I have two problems: I have tried to use write_formula(row_num, col_num ,'=HYPERLINK("some URL","Some link text")', link_format). But as result I have digits (zero as example) in the result file cell. This is really strange because if i press "Enter" in this cell then I can see "Some link text" in this cell and I can click on it and go to the url.
Author: jmcnamara
🌐
Libxlsxwriter
libxlsxwriter.github.io › hyperlinks_8c-example.html
libxlsxwriter: hyperlinks.c
* Example of writing urls/hyperlinks with the libxlsxwriter library. * * Copyright 2014-2026, John McNamara, jmcnamara@cpan.org · * */ #include "xlsxwriter.h" int main() { /* Create a new workbook. */ lxw_workbook *workbook = workbook_new("hyperlinks.xlsx"); /* Add a worksheet.
🌐
YouTube
youtube.com › python in office
Use Python Xlsxwriter To Create Excel Formulas And Links (Part 2) - YouTube
In Part 2 of the Xlsxwriter tutorial, we'll create Excel named range, links, and formulas. For the text version of the tutorial, check out this link: https:/...
Published: September 24, 2021
Views: 988
🌐
Python Forum
python-forum.io › thread-20041.html
How to add hyperlink to existing Excel file
Hi, I have below the main table (both table are (csv): grp1 grp2 grp Date grp1_1 grp1_2 Date grp2_1 grp2_2 grp2_3 AHJ 20191/7/1 1/3 2/5 20191/7/1 2/5 3/3 2/6 AKL ...
🌐
Readthedocs
xlsxwriterlua.readthedocs.io › example_hyperlink.html
Example: Adding hyperlinks — xlsxwriter.lua Documentation
-- Write some hyperlinks worksheet:write_url('A1', 'http://www.lua.org/', url_format) worksheet:write_url('A3', 'http://www.lua.org/', url_format, alt_string) worksheet:write_url('A5', 'http://www.lua.org/', url_format, alt_string, tip_string) worksheet:write_url('A7', 'http://www.lua.org/', red_format) worksheet:write_url('A9', 'mailto:jmcnamaracpan.org', url_format, 'Mail me') -- Write a URL that isn't a hyperlink worksheet:write_string('A11', 'http://www.lua.org/') workbook:close()
🌐
SUSE Package Hub
packagehub.suse.com › packages › python-XlsxWriter › 1_2_7-bp152_1_8
python-XlsxWriter-1.2.7-bp152.1.8
Note, this is a backward incompatible change. Issue `#504 <https://github.com/jmcnamara/XlsxWriter/issues/504>`_. * Fixed missing plotarea formatting in pie/doughnut charts. - Update to version 1.0.2 * Fix for cases where the hyperlink style added in the previous release didn't work.
🌐
Stack Overflow
stackoverflow.com › questions › 75893105 › removed-records-hyperlinks-when-opening-spreadsheet
export to excel - 'Removed Records: Hyperlinks...' when opening spreadsheet - Stack Overflow
I am the author of XlsxWriter and I'd be interested in seeing the file that is causing this issue if you could raise a github issue or if the data is sensitive contact me at the email address in the docs. In the meantime you can avoid creating unintentional hyperlinks by using the strings_to_urls Constructor parameter: workbook = xlsxwriter.Workbook(filename, {'strings_to_urls': False}).
🌐
GitHub
github.com › jmcnamara › XlsxWriter › issues › 455
Feature request: change color of urls after they have been clicked · Issue #455 · jmcnamara/XlsxWriter
August 17, 2017 - Hello Is it possible to add a font color option for urls/links such that the color changes after the url has been clicked? For example, from blue to purple, as usual with links. Openpyxl supports t...
Author: jmcnamara
Author: jmcnamara
🌐
GeeksforGeeks
geeksforgeeks.org › python › saving-long-urls-with-pandas-and-xlsxwriter
Saving Long URLs with Pandas and XlsxWriter - GeeksforGeeks
July 23, 2025 - This article dives into handling URLs in Excel using Python, specifically with the `pandas` library and the `XlsxWriter` engine. By the end, we'll learn how to efficiently save and format long URLs in Excel files and ensure they remain user-friendly. Excel is a powerful tool for managing and analyzing data, but working with URLs can be tricky. Long URLs often break when displayed in cells, causing formatting issues or making the spreadsheet difficult to read. Moreover, Excel might not automatically treat text as hyperlinks, requiring extra steps to keep your URLs clickable.