toolqik

207 · JavaScript

JavaScript Object Inspector

Explore any JavaScript value as a tree: types, prototypes, getters, symbols and property flags.

Runs in your browser
Path
As JSON

  

About this tool

Paste an object literal, an array, a class, or any expression, and explore the value it produces as a tree. Unlike JSON, the inspector shows everything JavaScript values can hold: functions, classes, Map, Set, Date, RegExp, symbols, undefined, BigInt, getters and setters, circular references and the prototype chain.

What you can see

  • Types of every value, and the constructor of objects created with new.
  • Property flags: non-enumerable properties are dimmed, read-only ones marked, and getters shown without running them.
  • The prototype chain under [[Prototype]], so you can see where inherited methods come from. Built-in prototypes are summarised.
  • Paths: click any property to get the expression that reaches it, like user.roles[0]["display-name"].
  • JSON: the value as JSON.stringify would produce it, with functions and undefined dropped.

You can paste several statements: the value of the last expression is shown, or use return.

Safe to run

Your code runs in a Web Worker inside a sandboxed iframe with its own unique origin. It can’t read this site’s storage or cookies or touch the page, and an infinite loop can always be stopped, because the worker is terminated rather than asked to stop.

FAQ

How do I convert a JavaScript object to JSON?

Paste the object literal and press Inspect. The As JSON panel shows JSON.stringify output, which you can copy.

What are non-enumerable properties?

Properties hidden from for…in, Object.keys and JSON.stringify, such as an array’s length or methods on class prototypes. They are shown dimmed.

Why doesn’t it show getter values?

Running a getter can have side effects, so it is shown as [Getter] instead of being called.

Can it handle circular references?

Yes. A value seen earlier is shown as [Circular *n] pointing to its first appearance.

Is my code run safely?

Yes. It runs in a sandboxed Web Worker that can’t access this page, and it’s stopped if it takes too long.

esc
↑↓ navigate↵ open