Link Code

Open Link in New Window/Tab Code

Add target="_blank" to open a link in a new tab — paired with rel="noopener noreferrer" for security.

Live Tool
new-tab.html Live

          
Preview

1How To Use

Follow these steps — no coding experience needed.

  1. Add your URL and textAny standard link details.
  2. Copy the codetarget="_blank" opens a new tab; rel="noopener noreferrer" keeps it secure.
  3. Use sparinglyReserve new-tab links for cases where leaving the current page would lose the visitor's progress.

2Example Output

What this code looks like once it's on a real page.

Read the full documentation ↗ (opens in a new tab).

3Browser Compatibility

BrowserSupportNotes
Chrome✓ SupportedFull support
Firefox✓ SupportedFull support
Safari✓ SupportedFull support
Edge✓ SupportedFull support
Opera✓ SupportedFull support
Mobile browsers✓ SupportedFull support, iOS & Android

Supported in every current browser — Chrome, Firefox, Safari, Edge and Opera all render this identically, on both desktop and mobile.

Related Pages

More tools that pair naturally with this one.