Skip to content
Code and tracking · free, no sign-up

Charset Checker

Finds the character set a page declares, in its HTML and in the HTTP header.

Why it matters

If a browser guesses the wrong character set, accented letters and symbols turn into gibberish such as "’". This looks careless, and it can make search engines misread your text.

How to fix it

  • Add <meta charset="utf-8"> at the very start of the head.
  • Save your files and database as UTF-8.

What a good result looks like

UTF-8 declared in the first 1024 bytes of the page, agreeing with the HTTP header, plus a lang attribute on the html tag.

Common mistakes

  • A header and a meta tag that disagree, as the header wins.
  • Text that shows as "’" after moving between systems with different encodings.

Questions about the Charset Checker

Why does the charset have to come so early?

Browsers read the start of the file to work out the encoding. If it comes too late, they may guess, or start the page again.

Do I still need this if my server sends UTF-8?

The header is enough technically, but a meta tag protects pages when they are saved, moved or served from elsewhere.

Check everything at once

Run our other instant checks on your site in one report.

Full SEO check-up

More code and tracking tools