Яндекс.Метрика

Meta charset checker

Check whether a page declares its character encoding and which charset it uses.

0 of 0 ratings

Last submissions

Why character encoding matters

Text on the web is stored as bytes, and character encoding defines how those bytes map to characters. If the encoding declared by the page does not match the actual encoding of the content, characters can appear garbled. This is most visible with non-Latin scripts, accented letters and special symbols.

This checker looks for a charset declaration in the page and reports whether one is present.

How it is declared

The modern approach is a meta charset tag in the HTML head, typically set to UTF-8. UTF-8 covers virtually all characters and scripts, which is why it is the recommended choice for new sites. The declaration should appear early in the head so the browser can apply it before parsing the rest of the document. Servers can also send the encoding in the Content-Type header, and the two should agree.

Interpreting the result

If a charset is declared, check that it is UTF-8 unless you have a specific reason to use another encoding. If it is missing, browsers may guess based on content or default settings, which can produce inconsistent results. A mismatch between the declared encoding and the actual bytes is the most common cause of garbled text.

Common problems

  • The declaration appears late in the document, after content has already been parsed.
  • The server header and the meta tag declare different encodings.
  • Legacy encodings are used for content that includes characters outside their range.
  • Files are saved in one encoding but served as another.

Practical note

Standardizing on UTF-8 simplifies multilingual content and avoids a large class of encoding bugs. After changing encoding, verify that the database, the application and the HTML declaration all agree, and test pages with special characters to confirm correct rendering.

Similar tools

Meta tags checker

View and verify the meta tags that a webpage exposes to search engines and browsers.

8
Language attribute checker

Read the HTML lang attribute of a webpage and confirm the declared language.

17
Doctype checker

Check whether a page declares an HTML doctype and which version it uses.

4

Popular tools