Documentation

Learn JSONFiddle by workflow

Short guides for viewing, querying, editing, converting, and exporting structured data in the browser.

Keyboard Shortcuts

A complete reference of every keyboard shortcut in JSONFiddle, organized by view and task. Press ? anywhere in the app to open this reference as an in-app modal.

JSONFiddle uses platform-aware shortcuts: Cmd on macOS and Ctrl on Windows/Linux. All Alt-based shortcuts use physical key detection on macOS to avoid conflicts with special characters.

Keyboard shortcuts modal Screenshot: The keyboard shortcuts modal showing all available shortcuts.


Global Shortcuts

These shortcuts work from anywhere in the app, regardless of which view is active.

MacWindows / LinuxActionWhen to Use
Cmd+SCtrl+SOpen the export modalSave your work as a file or export a diagram image.
Alt+NAlt+NCreate a new tabStart a new document without closing the current one.
Alt+WAlt+WClose the current tabDone with a document and want to free up a tab slot.
Alt+1Alt+1Switch to Graph viewSee the visual node graph.
Alt+2Alt+2Switch to Explorer viewBrowse data as a tree or column layout.
Alt+3Alt+3Switch to Grid viewSee tabular data as a sortable spreadsheet.
Alt+4Alt+4Switch to Query viewWrite a query expression to extract or transform data.
??Open the shortcuts modalQuick reference when you forget a shortcut. Only triggers when not focused in a text input.

Tip: The ? shortcut only triggers when you are not typing in a text input, the code editor, or a modal. Click outside the input first.


Graph View Shortcuts

Active when the Graph view is displayed in the right panel.

MacWindows / LinuxActionWhen to Use
Cmd+FCtrl+FOpen the node search panelFind a specific key or value in a large graph.
Cmd+Shift+DCtrl+Shift+DRotate layout direction (LR -> TB -> RL -> BT)Change the graph orientation.
Cmd+Shift+SCtrl+Shift+SToggle scroll-to-zoom on/offWhen scroll-to-zoom conflicts with page scrolling.
Alt+CAlt+CCollapse all nodesSee only the top-level structure.
Alt+XAlt+XExpand all nodesReveal the full graph after collapsing.
Alt+EAlt+EToggle edge labelsShow or hide the key names on edges.
Alt+AAlt+AStart step-through animationWalk through the graph one node at a time.
Alt+LAlt+LLock/unlock canvas positionsPrevent accidental movement after arranging nodes manually.
Shift+1Shift+1Center view on the first nodeSnap back to the root after panning away.
Shift+2Shift+2Fit all nodes to the viewportSee the entire graph at once.

Explorer View Shortcuts

Active when the Explorer view (Tree or Column layout) is displayed.

MacWindows / LinuxActionWhen to Use
Cmd+FCtrl+FOpen the search barFind a key or value in the tree.
Up / DownUp / DownNavigate between rowsBrowse the tree.
Left / RightLeft / RightCollapse/expand the selected node, or navigate columnsDrill into or back out of a nested object.
Alt+LeftAlt+LeftGo back in navigation historyReturn to a previous location.
Alt+RightAlt+RightGo forward in navigation historyGo forward after going back.
HomeHomeJump to the first rowReturn to the top of the tree quickly.
EndEndJump to the last rowJump to the bottom of the tree.

Grid View Shortcuts

Active when the Grid view is displayed.

MacWindows / LinuxActionWhen to Use
Cmd+FCtrl+FOpen/close the search and filter panelSearch or apply filters.
EscEscClose the search/filter panelReturn to the full grid view.

Tip: Grid view also responds to mouse interactions for sorting (click column headers), editing (double-click cells), and context menus (right-click rows). See the Grid View Guide for details.


Query View Shortcuts

Active when the Query view is displayed.

MacWindows / LinuxActionWhen to Use
Cmd+EnterCtrl+EnterRun the current queryExecute a modified query expression.
TabTabAccept the suggested query completionAccept an autocomplete suggestion.
Ctrl+SpaceCtrl+SpaceOpen the autocomplete suggestion widgetSee available completions.
EscEscClose the suggestion widgetDismiss autocomplete.

Animation Control Shortcuts

Active while a step-through animation is running in the Graph view. Start with Alt+A.

ShortcutActionWhen to Use
SpacePause or resume the animationFreeze on a specific node to examine it.
Right ArrowStep forward one node (when paused)Advance to the next node manually.
EscStop the animationReturn to normal graph interaction.

Note: Animation controls override normal keyboard behavior. Pressing Space while animating pauses instead of scrolling the page.


Diagram View Shortcuts

Active when viewing a JFDG diagram.

MacWindows / LinuxActionWhen to Use
Shift+1Shift+1Center the view on the first nodeSnap back to the starting position.
Shift+2Shift+2Fit all nodes to the viewportSee the entire diagram at once.

Shortcuts by Task

"I want to navigate between views"

TaskShortcut
Go to Graph viewAlt+1
Go to Explorer viewAlt+2
Go to Grid viewAlt+3
Go to Query viewAlt+4

"I want to search for something"

TaskShortcutView
Search nodes in the graphCmd+FGraph
Search the explorer treeCmd+FExplorer
Search/filter grid rowsCmd+FGrid

"I want to manage tabs"

TaskShortcut
Create a new tabAlt+N
Close the current tabAlt+W
Save / ExportCmd+S

"I want to work with the graph"

TaskShortcut
Collapse all branchesAlt+C
Expand all branchesAlt+X
Rotate layout directionCmd+Shift+D
Toggle edge labelsAlt+E
Start animationAlt+A
Lock/unlock canvasAlt+L
Center on first nodeShift+1
Fit all nodes to viewShift+2
Toggle scroll-to-zoomCmd+Shift+S

"I want to run a query"

TaskShortcut
Run the queryCmd+Enter
Accept autocompleteTab
Open autocompleteCtrl+Space
Dismiss autocompleteEsc

Power User Combos

Combo 1: Quick Query from Graph

  1. Press Alt+1 to switch to Graph view.
  2. Right-click the node you want to query.
  3. Click Copy as JSONPath.
  4. Press Alt+4 to switch to Query view.
  5. Paste (Cmd+V) the path into the query input.
  6. Press Cmd+Enter to run.

Combo 2: Collapse, Animate, Present

  1. Press Alt+C to collapse all nodes (clean starting point).
  2. Press Alt+A to start the animation.
  3. Press Space to pause on a key node.
  4. Press Right Arrow to step through manually.
  5. Press Esc when done.

Combo 3: Quick Format Check

  1. Press Alt+N to create a new tab.
  2. Paste JSON from your clipboard.
  3. Check the "Valid" badge in the bottom bar.
  4. Press Alt+W to close the tab when done.

Combo 4: Multi-Tab Comparison

  1. Press Alt+N to create tabs for each JSON document you want to compare.
  2. Paste different JSON into each tab.
  3. Click between tabs to visually compare the graphs.
  4. Press Alt+4 in each tab to run the same query and compare results.

macOS Compatibility: Physical Key Detection

On macOS, pressing Alt (Option) together with a letter key produces special Unicode characters. JSONFiddle solves this by using physical key detection (e.code instead of e.key).

  • The shortcut fires based on the physical position of the key you press, not the character it produces.
  • No keyboard settings changes required.
  • Applies to all Alt+letter shortcuts (Alt+N, Alt+W, Alt+C, Alt+X, Alt+E, Alt+A, Alt+L, Alt+1 through Alt+4).
Standard key detection:
  Alt + C key pressed -> e.key = "c" (special char) -> shortcut fails

JSONFiddle's physical key detection:
  Alt + C key pressed -> e.code = "KeyC" (physical key) -> shortcut works

Note: If you use a non-QWERTY keyboard layout (Dvorak, Colemak, AZERTY), the shortcut fires based on the physical key position, not the labeled key.


Browser Shortcut Conflicts

ShortcutBrowser BehaviorWorkaround
Cmd+SSome browsers show a "Save page" dialogJSONFiddle intercepts this and opens the export modal instead.
Ctrl+SpacemacOS Spotlight (if configured)Remap Spotlight in System Settings, or click the autocomplete button instead.

Customizing Shortcuts

JSONFiddle does not currently support custom key bindings. All shortcuts are fixed as documented above.


Troubleshooting

"Pressing ? does not open the modal"

Make sure your cursor is not inside a text input, the code editor, or a modal. Click on the page background first.

"Alt shortcuts produce special characters instead of triggering actions"

This should not happen because JSONFiddle uses physical key detection. If it does:

  • Make sure you are pressing the keys simultaneously.
  • Try refreshing the page.
  • Check if a browser extension is intercepting the key event.

Click anywhere on the right panel first, then press Cmd+F.


FAQ

Q: Can I customize the keyboard shortcuts? A: Not currently.

Q: Do shortcuts work on mobile devices? A: Shortcuts require a physical keyboard. On tablets with a Bluetooth keyboard, most shortcuts work normally.

Q: Why do some shortcuts use Alt and others use Cmd? A: Cmd-based shortcuts follow standard conventions (e.g., Cmd+S for save, Cmd+F for find). Alt-based shortcuts are JSONFiddle-specific actions.