Local Business Schema Generator – MicroData & JSON-LD
Since Google prefers using the JSON-LD version of Schema markup for business listings, this tool now shows the JSON-LD version by default. If you still prefer to use the MicroData format, there is an option to show it.
Mục Lục
Directions
Fill in the blanks, the Schema JSON-LD or Microdata code is generated and displayed below for you to copy and paste on your website.
NOTE: I did not come up with the Business Types, they are taken from the Schema Documentation. There ‘may’ or ‘may not’ be an exact match for the business you are working on by checking for a specific type here.
Business Type
Business Name
Street Address
City
State
Zipcode
Phone
Fax
Clickable? Yes
URL
Clickable? Yes
Image should be Minimum: 160×90 -> Maximum: 1920×1080 (width x height). Keep in mind the image will probably be cropped square from the top for some items.
) –
Image ( ? ) – ex
Payment Accepted
Cash Check Credit Card Invoice PayPal
Price Range
Days Open:
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
Does your business have different open/close hours on different days, or weekend hours?
If I get a few requests through twitter, or email I’ll add it in.
(How to get)
Geo:
Lat:
Long:
Advice
I can’t be more clear, Check Your Work! When previewing most of the websites that have been submitted, they did not check the website using the Google Structure Tool listed below. Here is a list of a few websites that implemented the JSON-LD properly: Websites Using Schema. Test them to see what it should look like.
- Don’t forget to test the output. Copy the output, either HTML or the JSON version, and paste it into the “Code Snippet” option on this tool: Google Structure Data Tool New: Google Rich Results Test.
If you run in to any problems, please let me know either through email or twitter. - Do NOT add both the MicroData Code and the JSON code version to the same page.
- If using WordPress, make sure you don’t place this inside a Theme that is adding Microdata tags.
Output Type:
JSON-LD HTML
Your Code HTML – (
– ( Test
Your JSON-LD Code (Preferred by Google) – (
– ( Test
If you find this tool useful, please let me know on twitter: @sferrino or Here
Change List
Jan 5, 2023 – Added more Businesses Types.
May 17, 2018 – Added Auto calculating the Latitude and Longitude based on the address provided. No need to go to another website.
May 17, 2018 – Added “openingHoursSpecification” – There has been a long standing debate over the use of “openingHours” vs “openingHoursSpecification”, but Google is listing “openingHoursSpecification” on their Local Business Page, so I felt it better to include both until there is a final decision on the matter. The Schema Issue #245 on GitHub discusses the issue.