The Accent Letters

How to Type ñ (N with tilde) on HTML

Published July 28, 2026, 2 min read

Need ñ on HTML for a name, an address or a word in another language? You do not have to copy it from a website every time. The fastest method is ñ, and there are a few backups below for when that one is not available.

ñ on HTML: ñ

Ñ on HTML: Ñ

Or copy it:

Method 1: Codes for web pages

FormatCode for ñ
Named entityñ
Decimal entityñ
Hex entityñ
CSS contentcontent: "\00F1";
JavaScript"\u00F1"
URL encoded%C3%B1
UTF-8 bytesC3 B1

Method 2: Type it directly with UTF-8

If your page starts with <meta charset="utf-8"> and the file is saved as UTF-8, you can paste ñ straight into the HTML. Entities are only needed when your editor or database cannot store the character.

Method 3: Watch for normalization

ñ can also be written as n plus a combining mark. Both look the same but compare as different strings. In JavaScript, call str.normalize("NFC") before comparing or searching.

How to type the capital Ñ

The uppercase form works the same way with Shift added where a letter is typed.

Codes for web pages

FormatCode for Ñ
Named entity&Ntilde;
Decimal entity&#209;
Hex entity&#x00D1;
CSS contentcontent: "\00D1";
JavaScript"\u00D1"
URL encoded%C3%91
UTF-8 bytesC3 91

Type it directly with UTF-8

If your page starts with <meta charset="utf-8"> and the file is saved as UTF-8, you can paste Ñ straight into the HTML. Entities are only needed when your editor or database cannot store the character.

About the letter ñ

ñ is Unicode U+00F1, named LATIN SMALL LETTER N WITH TILDE. It is used in Spanish. A wavy line above a letter. Spanish uses it for ñ, Portuguese for nasal vowels (ã, õ), Estonian for õ, and Vietnamese for the broken rising tone. See the ñ character page for every code and shortcut.

Troubleshooting

Frequently asked questions

What is the shortcut for ñ on HTML?

&ntilde;.

Can I just copy and paste ñ?

Yes. Click the copy button above, then paste with Ctrl+V on Windows and Chromebook, Cmd+V on a Mac, or touch and hold and choose Paste on a phone.

What is the Unicode code for ñ?

U+00F1. In HTML it is &ntilde;.

Related guides

All accent shortcuts for HTML