What a hyperlink is and why you need one
A hyperlink is text or an image that, when clicked, takes you to another web page, document, or location. The text you click is usually blue and underlined. Hyperlinks let you connect related information without repeating it — you write "click here for details" instead of pasting the entire details section into your document.
You create hyperlinks differently depending on what program you are using. Microsoft Word, Google Docs, email clients, and web design tools all have their own steps. The basic idea is the same: you select the text you want to click on, then tell the program where that click should go.
Hyperlinks work in documents you share with others, emails you send, and web pages you publish. They are one of the most common ways people navigate online and between documents.
Key Takeaways
- Select the text you want to turn into a link, then use your program's link tool to paste the destination URL or file path.
- In Microsoft Word, right-click selected text and choose "Link" or use Ctrl+K on Windows and Command+K on Mac.
- In Google Docs, select text, click the link icon in the toolbar, and paste the URL or search for a page to link to.
- Email programs like Gmail and Outlook have link buttons in the compose window — select text and click the link icon to add a URL.
- Test your links before sharing a document to make sure they go where you intended.
Creating a hyperlink in Microsoft Word
Open your document and select the text you want to turn into a link. You can select a single word or a whole phrase. On Windows, press Ctrl+K. On Mac, press Command+K. A dialog box will appear asking for the address.
Paste the full URL into the "Address" field — for example, https://www.example.com. If you are linking to a file on your computer instead of a web page, click "Browse" and navigate to that file. Click "OK" and Word will format the text as a hyperlink, usually in blue and underlined.
You can also right-click the selected text, choose "Link" from the menu, and follow the same steps. To edit a link later, right-click it and select "Edit Link". To remove a link while keeping the text, right-click and choose "Remove Link".
Creating a hyperlink in Google Docs
Select the text you want to link. Click the link icon in the toolbar — it looks like a chain link and is usually near the bold and italic buttons. A small box will appear with a text field for the URL.
You can paste a URL directly into the field, or type a few words and Google Docs will search for matching web pages and show you suggestions. Click the page you want to link to, or paste the full URL and press Enter. The text will turn blue and underlined.
To change where a link goes, click the link and the box will reappear. To remove a link, click it and press the unlink button (an X or broken chain icon) in the box. Google Docs also lets you link to headings and bookmarks within the same document — click "Link" and choose "Headings" or "Bookmarks" from the dropdown.
Creating a hyperlink in email
In Gmail, compose a new message and select the text you want to turn into a link. Click the link icon in the compose toolbar. A box will appear where you can paste the URL. Press Enter or click the checkmark to confirm.
In Outlook, the process is similar: select text, click the "Link" button in the ribbon, paste the URL, and click "OK". Both programs will format the text as a clickable link in the email.
When you send an email with hyperlinks, recipients can click them directly in their email client. Some email programs may ask the recipient to confirm they want to open the link, especially if it is an external website.
Creating a hyperlink in HTML and on websites
If you are writing HTML code, use the anchor tag to create a link. The format is <a href="https://www.example.com">Click here</a>. Replace the URL with the page you want to link to, and replace "Click here" with the text you want readers to see.
If you are using a website builder like Wix, Squarespace, or WordPress, select text in the editor and click the link icon. Paste the URL and the builder will create the HTML for you automatically. You do not need to write code yourself.
You can also link to files, email addresses, and phone numbers. To link to an email, use <a href="mailto:name@example.com">Email us</a>. To link to a phone number, use <a href="tel:+1-555-0123">Call us</a>.
Testing and troubleshooting your links
Before you share a document or publish a web page, click each link to make sure it goes where you intended. A broken link — one that goes to a page that no longer exists or has moved — will frustrate readers and make your document look outdated.
If a link does not work, check that you copied the URL correctly. Common mistakes include leaving off the https:// at the beginning, misspelling the domain name, or copying a shortened URL that has expired. Paste the URL into your browser's address bar to test it first.
If you are linking to a file on your computer, make sure the file is in a location the recipient can reach. Linking to a file on your desktop will not work for someone else unless you move the file to a shared folder or cloud storage service like Google Drive or Dropbox.
Frequently Asked Questions
Can I link to a specific part of a web page instead of the top?
Yes, if the page has headings or sections marked with anchors. Look for the URL in your browser's address bar — if it has a # symbol followed by a word (like example.com/page#section2), you can copy that full URL and use it as your link destination. This takes readers directly to that section instead of the top of the page.
What is the difference between a relative link and an absolute link?
An absolute link includes the full URL starting with https:// — for example, https://www.example.com/page. A relative link is shorter and works only within the same website — for example, /page or ../folder/page. Use absolute links when linking to other websites, and relative links when linking between pages on your own site.
Can I change the color of a hyperlink?
In Word and Google Docs, hyperlinks are formatted automatically and you cannot easily change their color without affecting the whole document's style. In HTML and website builders, you can use CSS to change link colors. Right-click a link in Word and choose "Character" to change the font, but the blue color is part of the hyperlink formatting itself.
What happens if I link to a page that later gets deleted?
The link will break and readers will see an error page. To prevent this, check your links periodically, especially in documents you share regularly. If you control the destination page, set up a redirect so the old URL sends visitors to the new location instead of showing an error.