---
title: "Insert a Hyperlink"
---

```

## Purpose Summary

This page explains how to insert a hyperlink.

```

```

See more details in the [Working with Hyperlinks and HTML](/words/net/working-with-hyperlinks/) article.

```

The following code example shows how to inserts a hyperlink into a Word document using the [DocumentBuilder](https://reference.aspose.com/words/net/aspose.words/documentbuilder/) class:

```csharp
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Write("Please make sure to visit ");

// Specify font formatting for the hyperlink.
builder.Font.Color = Color.Blue;
builder.Font.Underline = Underline.Single;

// Insert the link.
builder.InsertHyperlink("Aspose Website", "https://www.aspose.com", false);

// Revert to default formatting.
builder.Font.ClearFormatting();
builder.Write(" for more information.");
doc.Save("Insert_Hyperlink_In_Document.doc");
```

See also:

- [Github](https://github.com/aspose-words/Aspose.Words-for-.NET/releases/tag/Aspose.WordsFeaturesmissinginNPOIv1.2) for code example
- [Github](https://github.com/asposewords/Aspose.Words-for-.NET/releases/download/Aspose.WordsFeaturesmissinginNPOIv1.2/02.04-InsertHyperlink.zip) for running code
