HTML to JSON Converter

HTML to JSON Converter is used to convert HTML document to JSON by extracting the rows from HTML tables & converting it to JSON format. HTML is parsed, data types are automatically detected & converted to appropriate format in the JSON output. And finally the JSON output is formatted & indented for easy viewing.

Converted on ToolSlick's server. Your input and its output are not stored.

Paste HTML content below
Converted JSON

Settings

How the input is converted. Each is explained below.

History

  • 2019-03-16Handle HTML encoded values
  • 2018-05-26Automatic input detection
  • 2018-05-26Support for JSON-LD
  • 2018-05-15Generic HTML Conversion Support
  • 2017-09-27Tool Launched

Settings explained

Mode
How the HTML is read: Auto works it out; Table takes its tables; Generic turns every element into JSON; JSON-LD takes its linked data; Facebook Contacts and List read those pages.
Attribute Prefix
The prefix of the properties HTML attributes become, in the Generic mode. Set blank for none.
Text Property Name
The property that holds an element's text, in the Generic mode.
Unescape Json
HTML pasted as a JSON string, quotes and escapes included, is unescaped before it is read.

Background

HTML is the language of the internet. It is what creates HTML pages (even this one). In the old days, HTML used to be static with some JavaScript added into the mix for dynamic behavior and effects. Then HTML was served dynamically from the server side with the advent of server side programming languages such as PERL, PHP, ASP. And now there is a new trend where HTML is again being served as static resources with JSON (from REST web services) and JavaScript making it dynamic.

JavaScript Object Notation (JSON), pronounced as Jason, is the most common data interchange format on the web. Douglas Crockford first released the JSON specification in the early 2000s. It is a simple format that is easier to comprehend than XML. It is also smaller in size because it does not have closing tags. A wide variety of programming languages can parse JSON files. They also support the serialization of data structures to JSON. You can copy JSON text to JavaScript and start using them without any modifications.

Related tools