Google entity profile link generator
The Google Entity Profile Link Generator turns a Knowledge Graph machine ID (KGMID) into a stable Google search link for that entity. Paste a /g/ or /m/ ID, a kg: prefixed ID or any Google URL that contains one, and it returns a google.com/search?kgmid= link and a ready sameAs snippet. It never invents or verifies an ID.
- Accepts
- /g/, /m/, kg: or a URL
- Runs
- in your browser
- Cost
- free, no signup
What the generator checks
Open either line for why it matters and what to do next
-
Not runIdentifier format—
Why it mattersA KGMID starts with /g/ or /m/ followed by letters, digits, underscores or hyphens. /m/ IDs date from the Freebase era; /g/ IDs are issued by Google. Anything else is rejected rather than guessed.
How to fixCopy the ID exactly from a Google URL's kgmid parameter or from the Knowledge Graph Search API. Strip spaces; a kg: prefix is fine.
-
Not runEntity search link built—
Why it mattersThe link google.com/search?kgmid=<ID> asks Google to show the result it associates with that ID, which is a stable way to point to an entity regardless of how its name is spelled.
How to fixOpen the link and compare the name, description, website, images and location with the entity you meant before you use it as a sameAs reference.
Your entity link
The google.com/search?kgmid= link and a sameAs snippet for your schema
Nothing to show yet. After you build a link, the normalised URL appears here with a button to open the Google result, plus a sameAs JSON snippet you can copy or download.
How to build and verify an entity link
The generator normalises an ID you already have. It does not create an entity, claim a panel, verify ownership or prove that the ID belongs to the person or organisation you intended.
-
Step 1
Start with a known KGMID
Use an identifier from a legitimate Google entity result or a trusted source such as the Knowledge Graph Search API. Do not guess an ID from a name or copy one from a different entity.
-
Step 2
Paste the ID or URL
Paste a raw /g/ or /m/ ID, a kg: prefixed ID, or a Google URL that has a kgmid parameter or a /g/ or /m/ path. The generator extracts and checks the ID.
-
Step 3
Open the link
Follow the generated google.com/search?kgmid= link to see which entity Google associates with that ID.
-
Step 4
Confirm the identity by hand
Compare the returned name, description, website, images, location and other facts with the entity you meant. If they do not match, discard the ID.
-
Step 5
Use it in your schema
Copy the sameAs snippet into the entity's Person or Organization JSON-LD, or paste the ID into the entity schema generator.
What is a KGMID, and which inputs work?
A KGMID (Knowledge Graph machine ID) is the identifier Google uses for an entity in its Knowledge Graph. Google's Knowledge Graph Search API returns entities with IDs in the form kg:/m/…. IDs that start with /m/ come from Freebase, the database Google acquired and later retired; IDs that start with /g/ are issued by Google.
The generator accepts the formats below and turns each into the same link. Anything that does not reduce to a valid /g/ or /m/ ID is rejected with an error, never guessed.
If your brand shares a name with others, read how Google tells same-name entities apart.
| You paste | Example | Normalised ID |
|---|---|---|
| Raw ID | /m/0dl567 | /m/0dl567 |
| kg: prefixed ID | kg:/m/0dl567 | /m/0dl567 |
| Google URL with a kgmid parameter | https://www.google.com/search?kgmid=/m/0dl567 | /m/0dl567 |
| URL with a /g/ or /m/ path | A URL whose path contains /g/… or /m/… | The /g/ or /m/ part of the path |
| Anything else | A name, a Wikidata Q ID, a partial ID | Rejected with an error |
What the generator does
- Normalises /g/, /m/, kg: and URL inputs to one ID
- Builds a https://www.google.com/search?kgmid= link
- Builds a sameAs JSON snippet to copy or download
- Runs in your browser; nothing is sent to MoxSEO
What it does not do
- Look up or invent a KGMID from a name
- Check that the ID belongs to the entity you mean
- Create an entity, claim a panel or verify ownership
- Guarantee that Google shows a profile or panel
Using a KGMID in sameAs, carefully
Adding the Google entity link to an entity's sameAs property tells machines that your Person or Organization node and Google's entity are the same thing. That is only useful if it is true. Use entity schema to clarify truthful relationships, never to force an unrelated KGMID or panel association.
Keep your About, founder, team and contact information consistent so machines have a stable first-party source to compare against; see MoxSEO's own company page. Then review the wider picture with the Knowledge Panel Readiness Checker.
Important limitation: a working link is not evidence of ownership or correctness. If the result points to another entity, do not publish or reuse the identifier as a sameAs reference.
Where should this entity link belong?
Review the entity identity and intended use before adding a generated link to your profiles or structured data.
Questions about KGMID links
Short, standalone answers. Email editorial@moxseo.com if any of them is wrong.
What does the Google Entity Profile Link Generator do?
It takes a Knowledge Graph machine ID (KGMID), either on its own, with a kg: prefix, or inside a Google URL, checks its format and builds a https://www.google.com/search?kgmid= link to that entity. It also builds a sameAs JSON snippet you can paste into Person or Organization schema.
What is a KGMID?
A KGMID is the machine ID Google uses for an entity in its Knowledge Graph, such as a person, organisation or place. It starts with /g/ or /m/. Google's Knowledge Graph Search API returns these IDs with a kg: prefix.
What is the difference between /m/ and /g/ IDs?
IDs starting with /m/ come from Freebase, the open database Google acquired and later shut down. IDs starting with /g/ are issued by Google itself. Both work in a google.com/search?kgmid= link.
Where do I find my KGMID?
Look for a kgmid parameter in the URL of a Google result about the entity, or query Google's Knowledge Graph Search API. Do not guess an ID from a name or copy one from a similar entity. This generator does not look IDs up.
Does a working link mean the entity is mine?
No. The link shows whatever entity Google associates with the ID. Compare the name, description, website, images and location with the entity you meant. A working link is not evidence of ownership, correctness or a verified panel.
Should I add the KGMID link to sameAs?
Only after you have confirmed it points to the same entity your schema describes. A wrong sameAs link tells machines two different entities are the same, which harms rather than helps. If in doubt, leave it out.
Is the ID I paste sent anywhere?
No. The generator runs in your browser and does not send the ID or URL to MoxSEO. Only if you click the generated link does your browser open the Google result.
Run the next check
All 24 free tools- Knowledge Panel Readiness CheckerCheck whether the entity is described in Wikidata.
- Person and Organization Schema GeneratorAdd the confirmed KGMID to clean entity JSON-LD.
- Schema Markup ValidatorValidate the schema once it is on the page.
- Open Knowledge Bundle GeneratorPackage a page's key facts and links as Markdown.
Want your entity
signals aligned?
A free 30-minute call with Sakshi Kumari or Ashish Khan, the specialists who run MoxSEO. Bring the ID you just checked; they will help you confirm whether it is yours and where it belongs in your markup.
A call is not an engagement. We never guarantee rankings, panels or AI citations.




